Codeforces Round 628 (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
1325 Codeforces Round 628 (Div. 2) FINISHED False 7200 147626699 March 14, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2000 ) F Ehab's Last Theorem PROGRAMMING constructive algorithms dfs and similar graphs greedy 2600

B'It 's the year 5555. You have a graph, and you want to find a long cycle and a huge independent set, just because you can. But for now, let 's just stick with finding either. Given a connected graph with n vertices, you can choose 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 you can always solve one of these problems, but it 's too long to fit this margin. The first line contains two integers n and m ( 5 <= n <= 10^5 , n-1 <= m <= 2 cdot 10^5 ) -- the number of vertices and edges in the graph. Each of the next m lines contains two space-separated 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 sqrt{n} 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 integers not exceeding n , the vertices in the desired cycle, in the order they appear in the cycle. In the first sample: Notice that you can solve either problem, so printing the cycle 2-4-3-1-5-6 is also acceptable. In the second sample: Notice that if there are multiple answers you can print any, so printing the cycle 2-5-6 , for example, is acceptable. In the third sample: '...

Tutorials

74235

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
73412992 Dalvik_rohan F March 16, 2020, 1:52 p.m. OK Clang++17 Diagnostics TESTS 200 608 91545600 2600
73314180 libra7z F March 15, 2020, 7:56 a.m. OK D TESTS 195 187 20787200 2600
73350494 lx_zjk F March 15, 2020, 4:12 p.m. OK GNU C++11 TESTS 199 46 6246400 2600
73300917 Lu_Anlai F March 15, 2020, 4:11 a.m. OK GNU C++11 TESTS 195 46 6246400 2600
73661705 Qza_AC F March 19, 2020, 2:32 p.m. OK GNU C++11 TESTS 200 46 7475200 2600
73375711 Sneakoscope F March 16, 2020, 1:48 a.m. OK GNU C++11 TESTS 199 46 7680000 2600
73394691 Frame233 F March 16, 2020, 9:22 a.m. OK GNU C++11 TESTS 200 46 8192000 2600
73298457 Phinney F March 15, 2020, 2:54 a.m. OK GNU C++11 TESTS 195 46 9216000 2600
73322696 froggyzhang F March 15, 2020, 10:01 a.m. OK GNU C++11 TESTS 196 46 9318400 2600
73405394 chdyFZH F March 16, 2020, 12:07 p.m. OK GNU C++11 TESTS 200 46 9625600 2600
73450577 imzzy F March 17, 2020, 3:12 a.m. OK GNU C++11 TESTS 200 46 10854400 2600
73298855 UniverseofHK F March 15, 2020, 3:07 a.m. OK GNU C++11 TESTS 195 46 15872000 2600
73343292 tokitsukaze F March 15, 2020, 2:33 p.m. OK GNU C++14 TESTS 199 78 13721600 2600
73469536 guagualoveyou F March 17, 2020, 9:27 a.m. OK GNU C++14 TESTS 200 93 13107200 2600
73548451 luogu_bot5 F March 18, 2020, 7:40 a.m. OK GNU C++14 TESTS 200 93 13414400 2600
73452064 iamhpp F March 17, 2020, 4:02 a.m. OK GNU C++14 TESTS 200 93 13414400 2600
73410270 huanbao F March 16, 2020, 1:16 p.m. OK GNU C++14 TESTS 200 108 10137600 2600
73468325 guagualoveyou F March 17, 2020, 9:08 a.m. OK GNU C++14 TESTS 200 108 13004800 2600
73398919 9lie F March 16, 2020, 10:30 a.m. OK GNU C++14 TESTS 200 109 13926400 2600
73402130 DavitMarg F March 16, 2020, 11:21 a.m. OK GNU C++14 TESTS 200 109 14540800 2600
73306735 KbMu F March 15, 2020, 6:03 a.m. OK GNU C++14 TESTS 195 109 59596800 2600
73292359 AlanWaP F March 14, 2020, 10:57 p.m. OK GNU C++14 TESTS 195 124 7065600 2600
73300964 vjudge4 F March 15, 2020, 4:12 a.m. OK GNU C++17 TESTS 195 61 6656000 2600
73537658 _andyli F March 18, 2020, 4:26 a.m. OK GNU C++17 TESTS 200 77 13414400 2600
73319343 woshiluo F March 15, 2020, 9:13 a.m. OK GNU C++17 TESTS 195 93 11366400 2600
73465148 _andyli F March 17, 2020, 8:18 a.m. OK GNU C++17 TESTS 200 93 13414400 2600
73374630 Ruins F March 16, 2020, 12:54 a.m. OK GNU C++17 TESTS 199 108 7680000 2600
73345133 oneplus54 F March 15, 2020, 2:56 p.m. OK GNU C++17 TESTS 199 108 7680000 2600
73400695 ftiasch F March 16, 2020, 10:58 a.m. OK GNU C++17 TESTS 200 109 7884800 2600
73257718 A_Fan_of_the_AK_King--lk F March 14, 2020, 3:46 p.m. OK GNU C++17 TESTS 195 109 10240000 2600
73327472 HNO2 F March 15, 2020, 11:07 a.m. OK GNU C++17 TESTS 197 109 11059200 2600
73376526 ILLLZKQF F March 16, 2020, 2:24 a.m. OK GNU C++17 TESTS 199 109 28262400 2600
73429430 ZeyadKhattab F March 16, 2020, 5:45 p.m. OK Java 11 TESTS 200 421 33689600 2600
73494437 noahlewis.ca F March 17, 2020, 2:24 p.m. OK Java 11 TESTS 200 483 34816000 2600
73312118 its_aks_ulure F March 15, 2020, 7:25 a.m. OK Java 11 TESTS 195 561 43417600 2600
73312066 its_aks_ulure F March 15, 2020, 7:24 a.m. OK Java 11 TESTS 195 670 75878400 2600
73311990 its_aks_ulure F March 15, 2020, 7:23 a.m. OK Java 11 TESTS 195 701 76595200 2600
73524451 Harpae F March 17, 2020, 8:56 p.m. OK Java 8 TESTS 200 342 62361600 2600
73370565 O_E F March 15, 2020, 9:59 p.m. OK Java 8 TESTS 199 436 57651200 2600
73650985 Whiplash99 F March 19, 2020, 12:12 p.m. OK Java 8 TESTS 200 452 23449600 2600
73261095 BaZ_ F March 14, 2020, 3:57 p.m. OK Java 8 TESTS 195 468 50585600 2600
73381098 cwise F March 16, 2020, 5:07 a.m. OK Java 8 TESTS 200 530 49049600 2600
73354449 polyakoff F March 15, 2020, 4:57 p.m. OK Java 8 TESTS 199 545 60723200 2600
73437775 awesomelemonade F March 16, 2020, 7:59 p.m. OK Java 8 TESTS 200 701 57344000 2600
73276111 SecondThread F March 14, 2020, 6:06 p.m. OK Java 8 TESTS 195 935 27545600 2600
73447089 Spheniscine F March 17, 2020, 12:53 a.m. OK Kotlin TESTS 200 389 85299200 2600
73447217 Spheniscine F March 17, 2020, 12:59 a.m. OK Kotlin TESTS 200 405 85299200 2600
73286172 CrashMaster F March 14, 2020, 8:17 p.m. OK MS C++ 2017 TESTS 195 405 8806400 2600
73324169 meooow F March 15, 2020, 10:22 a.m. OK PyPy 3 TESTS 196 514 24371200 2600
73322905 meooow F March 15, 2020, 10:04 a.m. OK PyPy 3 TESTS 196 514 24780800 2600
73329015 FireBird23 F March 15, 2020, 11:29 a.m. OK PyPy 3 TESTS 198 888 52019200 2600
73328559 FireBird23 F March 15, 2020, 11:23 a.m. OK PyPy 3 TESTS 198 889 51712000 2600
73329499 FireBird23 F March 15, 2020, 11:35 a.m. OK PyPy 3 TESTS 198 904 66457600 2600
73335960 vk_76 F March 15, 2020, 12:58 p.m. OK PyPy 3 TESTS 199 936 23961600 2600
73329322 FireBird23 F March 15, 2020, 11:33 a.m. OK PyPy 3 TESTS 198 966 66457600 2600
73304084 mogproject F March 15, 2020, 5:20 a.m. OK Python 3 TESTS 195 872 43212800 2600

remove filters

Back to search problems