Codeforces Round 649 (Div. 2)

Solutions are presented as using the least memory and the fastest execution time. It also takes the top 10 most recent solutions from each language. If you want to limit to a specific index, click the "Solved" button and go to that problem.

ContestId
Name
Phase
Frozen
Duration (Seconds)
Relative Time
Start Time
1364 Codeforces Round 649 (Div. 2) FINISHED False 7200 145292111 June 13, 2020, 3:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4485 ) D Ehab's Last Corollary PROGRAMMING constructive algorithms data structures dfs and similar dp graphs implementation trees 2100

B"Given a connected undirected graph with n vertices and an integer k , you have to either: An independent set is a set of vertices such that no two of them are connected by an edge. A simple cycle is a cycle that doesn't contain any vertex twice. I have a proof that for any input you can always solve at least one of these problems, but it's left as an exercise for the reader. The first line contains three integers n , m , and k ( 3 <= k <= n <= 10^5 , n-1 <= m <= 2 cdot 10^5 ) -- the number of vertices and edges in the graph, and the parameter k from the statement. Each of the next m lines contains two integers u and v ( 1 <= u,v <= n ) that mean there's an edge between vertices u and v . It's guaranteed that the graph is connected and doesn't contain any self-loops or multiple edges. If you choose to solve the first problem, then on the first line print 1 , followed by a line containing lceil frac{k}{2} rceil distinct integers not exceeding n , the vertices in the desired independent set. If you, however, choose to solve the second problem, then on the first line print 2 , followed by a line containing one integer, c , representing the length of the found cycle, followed by a line containing c distinct integers not exceeding n , the vertices in the desired cycle, in the order they appear in the cycle. In the first sample: Notice that printing the independent set {2,4 } is also OK, but printing the cycle 1-2-3-4 isn't, because its length must be at most 3 . In the second sample: Notice that printing the independent set {1,3 } or printing the cycle 2-1-4 is also OK. In the third sample: In the fourth sample: "...

Tutorials

Codeforces round #649 editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
83663106 rainboy D June 13, 2020, 4:15 p.m. OK GNU C11 TESTS 137 389 9625600 2100
83711026 SingerCoder D June 14, 2020, 3:29 a.m. OK GNU C++11 TESTS 143 46 9932800 2100
83710986 orzxz D June 14, 2020, 3:28 a.m. OK GNU C++11 TESTS 143 46 10444800 2100
83694172 jeffyang D June 13, 2020, 7:16 p.m. OK GNU C++11 TESTS 141 46 18124800 2100
83690892 jeffyang D June 13, 2020, 6:33 p.m. OK GNU C++11 TESTS 140 46 18739200 2100
83711873 suxxsfe D June 14, 2020, 3:48 a.m. OK GNU C++11 TESTS 143 61 10035200 2100
83710585 2018liuzhiyuan D June 14, 2020, 3:17 a.m. OK GNU C++11 TESTS 143 62 11059200 2100
83709823 Austin_Griffin D June 14, 2020, 2:56 a.m. OK GNU C++11 TESTS 143 62 12697600 2100
83658651 myx12345 D June 13, 2020, 4:05 p.m. OK GNU C++11 TESTS 137 62 13926400 2100
83704525 wh0816 D June 13, 2020, 11:33 p.m. OK GNU C++11 TESTS 142 62 14643200 2100
83670486 _zay D June 13, 2020, 4:34 p.m. OK GNU C++11 TESTS 137 62 17817600 2100
83693465 Cyprien D June 13, 2020, 7:07 p.m. OK GNU C++14 TESTS 141 93 12390400 2100
83686589 arman_ferdous D June 13, 2020, 5:50 p.m. OK GNU C++14 TESTS 139 93 12697600 2100
83658140 Yuki726 D June 13, 2020, 4:04 p.m. OK GNU C++14 TESTS 137 93 13107200 2100
83659700 gutc2019 D June 13, 2020, 4:07 p.m. OK GNU C++14 TESTS 137 93 15462400 2100
83703182 ash_98 D June 13, 2020, 10:37 p.m. OK GNU C++14 TESTS 142 93 16588800 2100
83693147 Commando_ D June 13, 2020, 7:02 p.m. OK GNU C++14 TESTS 141 109 9420800 2100
83703401 ashkANOn D June 13, 2020, 10:46 p.m. OK GNU C++14 TESTS 142 109 10137600 2100
83697443 viditrockz26 D June 13, 2020, 8:07 p.m. OK GNU C++14 TESTS 141 109 16998400 2100
83682188 DanielixS D June 13, 2020, 5:04 p.m. OK GNU C++14 TESTS 137 109 44544000 2100
83686489 UpInTheAir D June 13, 2020, 5:50 p.m. OK GNU C++14 TESTS 139 124 6758400 2100
83686133 suta D June 13, 2020, 5:47 p.m. OK GNU C++17 TESTS 139 93 5324800 2100
83678428 Blackmamba_ D June 13, 2020, 4:56 p.m. OK GNU C++17 TESTS 137 93 10444800 2100
83701230 ahmed_nabiil D June 13, 2020, 9:28 p.m. OK GNU C++17 TESTS 142 93 14438400 2100
83681437 Macaron_lin D June 13, 2020, 5:03 p.m. OK GNU C++17 TESTS 137 93 48435200 2100
83651417 tempura0224 D June 13, 2020, 3:50 p.m. OK GNU C++17 TESTS 137 108 10444800 2100
83699772 fogsail D June 13, 2020, 8:53 p.m. OK GNU C++17 TESTS 141 108 17305600 2100
83699664 fogsail D June 13, 2020, 8:50 p.m. OK GNU C++17 TESTS 141 108 17305600 2100
83670258 wanqiaoNO2 D June 13, 2020, 4:34 p.m. OK GNU C++17 TESTS 137 108 104140800 2100
83700054 ishank162 D June 13, 2020, 8:59 p.m. OK GNU C++17 TESTS 141 109 10752000 2100
83661021 TsunamiNoLetGo D June 13, 2020, 4:10 p.m. OK GNU C++17 TESTS 137 109 11161600 2100
83656673 Egor D June 13, 2020, 4 p.m. OK GNU C++17 (64) TESTS 137 77 26931200 2100
83702177 KhaledRezk D June 13, 2020, 9:57 p.m. OK GNU C++17 (64) TESTS 142 78 16896000 2100
83700135 GMaster D June 13, 2020, 9:01 p.m. OK GNU C++17 (64) TESTS 142 92 22118400 2100
83693626 Parsa84 D June 13, 2020, 7:09 p.m. OK GNU C++17 (64) TESTS 141 93 6758400 2100
83691756 kessido D June 13, 2020, 6:43 p.m. OK GNU C++17 (64) TESTS 140 93 10649600 2100
83667773 neal D June 13, 2020, 4:27 p.m. OK GNU C++17 (64) TESTS 137 93 14131200 2100
83694511 kessido D June 13, 2020, 7:21 p.m. OK GNU C++17 (64) TESTS 141 93 16691200 2100
83697961 erray D June 13, 2020, 8:16 p.m. OK GNU C++17 (64) TESTS 141 93 20377600 2100
83694115 kvutxdy D June 13, 2020, 7:15 p.m. OK GNU C++17 (64) TESTS 141 93 20582400 2100
83713364 Jo3kerR D June 14, 2020, 4:18 a.m. OK GNU C++17 (64) TESTS 143 93 23756800 2100
83691730 u1s1reallycai D June 13, 2020, 6:43 p.m. OK Go TESTS 140 296 36044800 2100
83692303 wistful23 D June 13, 2020, 6:51 p.m. OK Java 11 TESTS 141 342 59187200 2100
83687691 BNL D June 13, 2020, 6 p.m. OK Java 11 TESTS 139 373 71782400 2100
83671933 insert_cool_handle D June 13, 2020, 4:38 p.m. OK Java 11 TESTS 137 436 73216000 2100
83672713 ZeyadKhattab D June 13, 2020, 4:41 p.m. OK Java 11 TESTS 137 483 105779200 2100
83673645 mphillotry D June 13, 2020, 4:43 p.m. OK Java 11 TESTS 137 498 32665600 2100
83697463 Noureldin D June 13, 2020, 8:07 p.m. OK Java 11 TESTS 141 529 104448000 2100
83692528 nsmikhailov D June 13, 2020, 6:54 p.m. OK Java 11 TESTS 141 545 37376000 2100
83694406 its_aks_ulure D June 13, 2020, 7:19 p.m. OK Java 11 TESTS 141 592 112332800 2100
83687555 teeac D June 13, 2020, 5:58 p.m. OK Java 11 TESTS 139 607 109465600 2100
83687641 pikapika00 D June 13, 2020, 5:59 p.m. OK Java 11 TESTS 139 607 109465600 2100
83708328 derrick20 D June 14, 2020, 2:13 a.m. OK Java 8 TESTS 143 327 28672000 2100
83659676 rozerhacks D June 13, 2020, 4:07 p.m. OK Java 8 TESTS 137 327 62873600 2100
83710467 derrick20 D June 14, 2020, 3:14 a.m. OK Java 8 TESTS 143 358 28262400 2100
83698916 PaladinWill D June 13, 2020, 8:35 p.m. OK Java 8 TESTS 141 358 58163200 2100
83673519 saurabhs1206 D June 13, 2020, 4:43 p.m. OK Java 8 TESTS 137 358 71270400 2100
83713481 AnandOza D June 14, 2020, 4:21 a.m. OK Java 8 TESTS 143 373 16179200 2100
83691085 nidhigoel D June 13, 2020, 6:35 p.m. OK Java 8 TESTS 140 373 33280000 2100
83683867 barakraganosungam D June 13, 2020, 5:36 p.m. OK Java 8 TESTS 137 390 32358400 2100
83707005 flyman3046 D June 14, 2020, 1:22 a.m. OK Java 8 TESTS 143 390 53248000 2100
83705378 mwen D June 14, 2020, 12:13 a.m. OK Java 8 TESTS 142 390 57344000 2100
83678798 elizarov D June 13, 2020, 4:57 p.m. OK Kotlin TESTS 137 312 21913600 2100
83697214 Hakiobo D June 13, 2020, 8:02 p.m. OK Kotlin TESTS 141 405 22118400 2100
83682413 yakamoto D June 13, 2020, 5:04 p.m. OK Kotlin TESTS 137 405 73728000 2100
83680011 abdukodir D June 13, 2020, 5 p.m. OK Kotlin TESTS 137 639 31641600 2100
83691743 rocketm D June 13, 2020, 6:43 p.m. OK Kotlin TESTS 140 919 73113600 2100
83670267 Yupiteru D June 13, 2020, 4:34 p.m. OK Mono C# TESTS 137 234 163225600 2100
83715924 teru D June 14, 2020, 5:08 a.m. OK Mono C# TESTS 145 311 27750400 2100
83708858 Seyaua D June 14, 2020, 2:30 a.m. OK MS C++ 2017 TESTS 143 124 10342400 2100
83666112 egardoz01 D June 13, 2020, 4:23 p.m. OK MS C++ 2017 TESTS 137 171 5734400 2100
83680618 tarattata1 D June 13, 2020, 5:01 p.m. OK MS C++ 2017 TESTS 137 171 11366400 2100
83704770 tarattata1 D June 13, 2020, 11:45 p.m. OK MS C++ 2017 TESTS 142 171 12390400 2100
83693935 jackcaptain D June 13, 2020, 7:13 p.m. OK MS C++ 2017 TESTS 141 358 13312000 2100
83685950 lioshik_ D June 13, 2020, 5:46 p.m. OK MS C++ 2017 TESTS 139 373 9728000 2100
83672552 nik1998 D June 13, 2020, 4:40 p.m. OK MS C++ 2017 TESTS 137 405 21708800 2100
83703863 pajenegod D June 13, 2020, 11:05 p.m. OK PyPy 2 TESTS 142 234 25088000 2100
83665810 pajenegod D June 13, 2020, 4:22 p.m. OK PyPy 2 TESTS 137 265 25088000 2100
83704165 wolffd D June 13, 2020, 11:17 p.m. OK PyPy 2 TESTS 142 436 32563200 2100
83650934 alexwice D June 13, 2020, 3:49 p.m. OK PyPy 2 TESTS 137 577 43212800 2100
83708550 wattaihei D June 14, 2020, 2:20 a.m. OK PyPy 3 TESTS 143 327 14643200 2100
83695083 kclee2172 D June 13, 2020, 7:29 p.m. OK PyPy 3 TESTS 141 436 34713600 2100
83680624 asvasil D June 13, 2020, 5:01 p.m. OK PyPy 3 TESTS 137 482 19456000 2100
83688705 qwertz73355a D June 13, 2020, 6:09 p.m. OK PyPy 3 TESTS 139 499 22937600 2100
83687899 zii.hrs D June 13, 2020, 6:02 p.m. OK PyPy 3 TESTS 139 499 24064000 2100
83678800 throwawayatcoder D June 13, 2020, 4:57 p.m. OK PyPy 3 TESTS 137 530 122777600 2100
83690495 aberent D June 13, 2020, 6:28 p.m. OK PyPy 3 TESTS 140 607 31129600 2100
83671211 NamanTyagi D June 13, 2020, 4:36 p.m. OK PyPy 3 TESTS 137 608 18329600 2100
83701456 gintoki_s D June 13, 2020, 9:34 p.m. OK PyPy 3 TESTS 142 623 39628800 2100
83684520 SalimAboubacar D June 13, 2020, 5:38 p.m. OK PyPy 3 TESTS 137 670 36454400 2100
83686205 nwi D June 13, 2020, 5:48 p.m. OK Python 2 TESTS 139 452 26931200 2100
83685860 nwi D June 13, 2020, 5:46 p.m. OK Python 2 TESTS 139 467 21606400 2100
83657885 f2016082 D June 13, 2020, 4:03 p.m. OK Python 3 TESTS 137 576 21606400 2100
83671072 alon276 D June 13, 2020, 4:36 p.m. OK Python 3 TESTS 137 592 28876800 2100
83668228 old_boo D June 13, 2020, 4:28 p.m. OK Python 3 TESTS 137 638 19763200 2100
83688281 sh1194 D June 13, 2020, 6:05 p.m. OK Python 3 TESTS 139 639 22016000 2100
83688644 sh1194 D June 13, 2020, 6:08 p.m. OK Python 3 TESTS 139 670 21401600 2100
83687617 sh1194 D June 13, 2020, 5:59 p.m. OK Python 3 TESTS 139 670 21913600 2100
83688861 sh1194 D June 13, 2020, 6:10 p.m. OK Python 3 TESTS 139 670 22016000 2100
83647567 sansen D June 13, 2020, 3:43 p.m. OK Rust TESTS 137 124 19148800 2100
83676181 yoshrc D June 13, 2020, 4:50 p.m. OK Rust TESTS 137 139 7987200 2100
83695276 limed D June 13, 2020, 7:31 p.m. OK Scala TESTS 141 748 83353600 2100

remove filters

Back to search problems