Codeforces Round 550 (Div. 3)

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
1144 Codeforces Round 550 (Div. 3) FINISHED False 7200 177782099 March 31, 2019, 2:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 11742 ) F Graph Without Long Directed Paths PROGRAMMING dfs and similar graphs 1700

B'You are given a connected undirected graph consisting of n vertices and m edges. There are no self-loops or multiple edges in the given graph. You have to direct its edges in such a way that the obtained directed graph does not contain any paths of length two or greater (where the length of path is denoted as the number of traversed edges). The first line contains two integer numbers n and m ( 2 <= n <= 2 cdot 10^5 , n - 1 <= m <= 2 cdot 10^5 ) -- the number of vertices and edges, respectively. The following m lines contain edges: edge i is given as a pair of vertices u_i , v_i ( 1 <= u_i, v_i <= n , u_i ne v_i ). There are no multiple edges in the given graph, i. xe2 x80 x89e. for each pair ( u_i, v_i ) there are no other pairs ( u_i, v_i ) and ( v_i, u_i ) in the list of edges. It is also guaranteed that the given graph is connected (there is a path between any pair of vertex in the given graph). If it is impossible to direct edges of the given graph in such a way that the obtained directed graph does not contain paths of length at least two, print "NO" in the first line. Otherwise print "YES" in the first line, and then print any suitable orientation of edges: a binary string (the string consisting only of '0 ' and '1 ') of length m . The i -th element of this string should be '0 ' if the i -th edge of the graph should be directed from u_i to v_i , and '1 ' otherwise. Edges are numbered in the order they are given in the input. The picture corresponding to the first example: And one of possible answers: '...

Tutorials

66307

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
64061268 _lys_Ce F Nov. 2, 2019, 3:56 a.m. OK Clang++17 Diagnostics TESTS 57 265 57036800 1700
59273646 ravi.kaushal97 F Aug. 22, 2019, 1:39 p.m. OK Clang++17 Diagnostics TESTS 57 857 102195200 1700
52320908 rr_ F April 4, 2019, 7:44 p.m. OK D TESTS 57 312 30003200 1700
52572687 Denor F April 10, 2019, 2:52 p.m. OK Delphi TESTS 57 155 8396800 1700
52326740 omlgg F April 5, 2019, 1:31 a.m. OK FPC TESTS 57 686 9932800 1700
52326697 d4rkn19ht F April 5, 2019, 1:28 a.m. OK FPC TESTS 57 686 51200000 1700
52537807 VladKuz F April 9, 2019, 4:30 p.m. OK FPC TESTS 57 701 40140800 1700
54974888 nasway F June 2, 2019, 10:19 a.m. OK FPC TESTS 57 779 21094400 1700
61752106 LuciferX07 F Oct. 3, 2019, 3:54 a.m. OK GNU C++11 TESTS 57 46 8704000 1700
57875348 Frame233 F July 28, 2019, 4:54 a.m. OK GNU C++11 TESTS 57 61 6656000 1700
57878963 Frame233 F July 28, 2019, 6:52 a.m. OK GNU C++11 TESTS 57 61 6656000 1700
62403736 luogu_bot4 F Oct. 12, 2019, 8:17 a.m. OK GNU C++11 TESTS 57 61 10956800 1700
52481452 TheShadow_DC F April 8, 2019, 5:52 a.m. OK GNU C++11 TESTS 57 62 6451200 1700
52481430 TheShadow_DC F April 8, 2019, 5:51 a.m. OK GNU C++11 TESTS 57 62 6451200 1700
62351042 Haworthia F Oct. 11, 2019, 9:18 a.m. OK GNU C++11 TESTS 57 62 7680000 1700
52486880 _23333 F April 8, 2019, 9:30 a.m. OK GNU C++11 TESTS 57 62 8089600 1700
61752171 LuciferX07 F Oct. 3, 2019, 3:56 a.m. OK GNU C++11 TESTS 57 62 8704000 1700
52738847 lyzqs F April 14, 2019, 7:52 a.m. OK GNU C++11 TESTS 57 62 10240000 1700
57483223 vjudge2 F July 22, 2019, 3:38 a.m. OK GNU C++14 TESTS 57 93 14131200 1700
57443188 vjudge4 F July 21, 2019, 7:25 a.m. OK GNU C++14 TESTS 57 93 19558400 1700
52810193 H4XeO6 F April 16, 2019, 8:06 a.m. OK GNU C++14 TESTS 57 109 12800000 1700
52160683 tokitsukaze F April 1, 2019, 3:08 p.m. OK GNU C++14 TESTS 57 109 15462400 1700
52799621 Oxer11 F April 16, 2019, 1:40 a.m. OK GNU C++14 TESTS 57 109 16179200 1700
52365408 Half-Blood_Prince F April 6, 2019, 12:36 a.m. OK GNU C++14 TESTS 57 124 7782400 1700
52433105 ChiTongZ F April 7, 2019, 1:08 a.m. OK GNU C++14 TESTS 57 124 8499200 1700
52263067 vjudge3 F April 3, 2019, 9:59 a.m. OK GNU C++14 TESTS 57 124 10956800 1700
52232328 vjudge3 F April 2, 2019, 12:21 p.m. OK GNU C++14 TESTS 57 124 12185600 1700
52629365 Toddhead RStormSP F April 12, 2019, 6:06 a.m. OK GNU C++14 TESTS 57 124 12595200 1700
53961712 vjudge2 F May 10, 2019, 2:35 p.m. OK GNU C++17 TESTS 57 93 14745600 1700
52259963 vjudge4 F April 3, 2019, 8:12 a.m. OK GNU C++17 TESTS 57 108 4505600 1700
52376698 chenhongta0 F April 6, 2019, 8:31 a.m. OK GNU C++17 TESTS 57 108 14131200 1700
52450461 liuxingyuan F April 7, 2019, 9:31 a.m. OK GNU C++17 TESTS 57 109 9011200 1700
52354994 vjudge4 F April 5, 2019, 4:22 p.m. OK GNU C++17 TESTS 57 109 13312000 1700
53823742 BBpigeon F May 6, 2019, 2:43 p.m. OK GNU C++17 TESTS 57 109 13312000 1700
53673215 CLF F May 2, 2019, 2:19 p.m. OK GNU C++17 TESTS 57 109 14131200 1700
52221378 Praesepe F April 2, 2019, 6:48 a.m. OK GNU C++17 TESTS 57 109 14131200 1700
52593881 vjudge3 F April 11, 2019, 7:41 a.m. OK GNU C++17 TESTS 57 124 6758400 1700
52455599 hacker-001 F April 7, 2019, 11:36 a.m. OK GNU C++17 TESTS 57 124 8192000 1700
68303463 synapse F Jan. 6, 2020, 7:55 a.m. OK Go TESTS 57 139 18432000 1700
61293297 stefan.sakalik F Sept. 25, 2019, 10:26 p.m. OK Go TESTS 57 373 22937600 1700
61293147 stefan.sakalik F Sept. 25, 2019, 10:17 p.m. OK Go TESTS 57 919 26112000 1700
52559446 2008061626 F April 10, 2019, 9:31 a.m. OK Go TESTS 57 998 45465600 1700
54660295 In_The_Name_Of_Love F May 26, 2019, 10:27 a.m. OK Java 8 TESTS 57 171 3891200 1700
54329546 ZZooNNee F May 18, 2019, 5:04 a.m. OK Java 8 TESTS 57 202 7065600 1700
54329305 vjudge5 F May 18, 2019, 4:55 a.m. OK Java 8 TESTS 57 202 7065600 1700
52421018 jijiamingxiangshanghong F April 6, 2019, 5:07 p.m. OK Java 8 TESTS 57 218 14028800 1700
52321376 Taran_1407 F April 4, 2019, 8 p.m. OK Java 8 TESTS 57 265 21401600 1700
52356453 O_E F April 5, 2019, 5:06 p.m. OK Java 8 TESTS 57 311 28569600 1700
52260045 L_aka_ryuga F April 3, 2019, 8:16 a.m. OK Java 8 TESTS 57 358 40960000 1700
52259626 L_aka_ryuga F April 3, 2019, 8 a.m. OK Java 8 TESTS 57 374 40960000 1700
57610978 Ahmad F July 23, 2019, 8:49 p.m. OK Java 8 TESTS 57 405 38297600 1700
52259167 L_aka_ryuga F April 3, 2019, 7:43 a.m. OK Java 8 TESTS 57 420 40960000 1700
53455857 exs F April 28, 2019, 2:29 a.m. OK Kotlin TESTS 57 1091 62566400 1700
52917722 timurtibeyev F April 17, 2019, 4:30 p.m. OK Kotlin TESTS 57 1092 9523200 1700
52222648 alykov F April 2, 2019, 7:30 a.m. OK Kotlin TESTS 57 1232 50380800 1700
52483385 dyukha F April 8, 2019, 7:15 a.m. OK Kotlin TESTS 57 1278 61849600 1700
52487403 dyukha F April 8, 2019, 9:50 a.m. OK Kotlin TESTS 57 1278 151449600 1700
52222733 alykov F April 2, 2019, 7:33 a.m. OK Kotlin TESTS 57 1388 59392000 1700
52223317 alykov F April 2, 2019, 7:54 a.m. OK Kotlin TESTS 57 1716 50380800 1700
52222767 alykov F April 2, 2019, 7:34 a.m. OK Kotlin TESTS 57 1934 61747200 1700
58527328 og.kostya F Aug. 10, 2019, 7:47 a.m. OK Mono C# TESTS 57 311 46694400 1700
58690624 fastnoise F Aug. 13, 2019, 2:57 a.m. OK Mono C# TESTS 57 561 32665600 1700
53949343 vjudge5 F May 10, 2019, 8:39 a.m. OK MS C++ TESTS 57 108 10240000 1700
57440553 vjudge2 F July 21, 2019, 6:36 a.m. OK MS C++ TESTS 57 109 7168000 1700
57440732 vjudge1 F July 21, 2019, 6:39 a.m. OK MS C++ TESTS 57 109 13312000 1700
57442715 vjudge1 F July 21, 2019, 7:16 a.m. OK MS C++ TESTS 57 124 10342400 1700
69649890 vjudge2 F Jan. 28, 2020, 4:30 a.m. OK MS C++ TESTS 57 140 10240000 1700
53312672 scorpiowf F April 26, 2019, 8:01 a.m. OK MS C++ TESTS 57 140 12800000 1700
57441199 vjudge2 F July 21, 2019, 6:48 a.m. OK MS C++ TESTS 57 140 13516800 1700
57441497 vjudge4 F July 21, 2019, 6:53 a.m. OK MS C++ TESTS 57 155 3174400 1700
52263397 hyacinthusorientalis F April 3, 2019, 10:09 a.m. OK MS C++ TESTS 57 156 13721600 1700
53948831 vjudge1 F May 10, 2019, 8:22 a.m. OK MS C++ TESTS 57 156 14336000 1700
52460093 booiris F April 7, 2019, 1:05 p.m. OK MS C++ 2017 TESTS 57 140 12697600 1700
57975583 ZSTU-2018329621261 F July 30, 2019, 7:35 a.m. OK MS C++ 2017 TESTS 57 171 8396800 1700
56522339 petko_mitkov F July 4, 2019, 3:30 p.m. OK MS C++ 2017 TESTS 57 202 11059200 1700
52643263 2465806616 F April 12, 2019, 1:23 p.m. OK MS C++ 2017 TESTS 57 202 13516800 1700
52222479 haylee F April 2, 2019, 7:25 a.m. OK MS C++ 2017 TESTS 57 295 11059200 1700
57451364 Saber_Altria F July 21, 2019, 9:50 a.m. OK MS C++ 2017 TESTS 57 327 26521600 1700
52353412 AleksanderBalobanov F April 5, 2019, 3:37 p.m. OK MS C++ 2017 TESTS 57 327 78950400 1700
53027505 SendThemToHell F April 19, 2019, 8:11 p.m. OK MS C++ 2017 TESTS 57 358 13824000 1700
57451797 vjudge3 F July 21, 2019, 10 a.m. OK MS C++ 2017 TESTS 57 358 26419200 1700
60055076 Ffemgc F Sept. 5, 2019, 3:31 a.m. OK MS C++ 2017 TESTS 57 420 15769600 1700
58877424 jay__0208 F Aug. 15, 2019, 6:40 p.m. OK PyPy 2 TESTS 57 639 33382400 1700
52349697 gatsko F April 5, 2019, 2:04 p.m. OK PyPy 2 TESTS 57 842 82739200 1700
52348923 gatsko F April 5, 2019, 1:46 p.m. OK PyPy 2 TESTS 57 950 83456000 1700
52219373 yumtam F April 2, 2019, 5:31 a.m. OK PyPy 3 TESTS 57 514 36864000 1700
52219349 yumtam F April 2, 2019, 5:30 a.m. OK PyPy 3 TESTS 57 1918 37068800 1700
52515500 rookzeno F April 9, 2019, 4:57 a.m. OK PyPy 3 TESTS 57 1918 38707200 1700
52267317 yfo F April 3, 2019, 11:51 a.m. OK PyPy 3 TESTS 57 1934 38092800 1700
52309881 SinKing F April 4, 2019, 2:08 p.m. OK PyPy 3 TESTS 57 1996 31436800 1700
56512250 brosucks F July 4, 2019, 11:01 a.m. OK PyPy 3 TESTS 57 1996 42086400 1700
55005217 shubhankarsharma00 F June 3, 2019, 7:08 a.m. OK Python 2 TESTS 57 1075 40857600 1700
52285570 Helli.code F April 3, 2019, 7:31 p.m. OK Python 2 TESTS 57 1106 37376000 1700
56154429 anshuman16423 F June 27, 2019, 9:34 a.m. OK Python 2 TESTS 57 1154 40652800 1700
52219925 Uranux F April 2, 2019, 5:55 a.m. OK Python 2 TESTS 57 1231 46899200 1700
52943023 Cifko F April 18, 2019, 10:13 a.m. OK Python 2 TESTS 57 1325 48947200 1700
52237964 Nika86 F April 2, 2019, 2:31 p.m. OK Python 2 TESTS 57 1949 38604800 1700
52481931 allonsy_kim F April 8, 2019, 6:14 a.m. OK Python 2 TESTS 57 1981 54784000 1700
61536184 xodeChemist F Sept. 30, 2019, 6:29 a.m. OK Python 3 TESTS 57 1060 42291200 1700
52471694 jddymx F April 7, 2019, 7 p.m. OK Python 3 TESTS 57 1092 55910400 1700
52355154 ulyss F April 5, 2019, 4:26 p.m. OK Python 3 TESTS 57 1106 33792000 1700
53009338 pranav_gupta F April 19, 2019, 11:18 a.m. OK Python 3 TESTS 57 1122 39731200 1700
54512037 Mayank08 F May 23, 2019, 7:39 a.m. OK Python 3 TESTS 57 1200 39014400 1700
52659431 hakan.sn.hs F April 12, 2019, 9:13 p.m. OK Python 3 TESTS 57 1216 43008000 1700
52647306 erickjohnross F April 12, 2019, 3:07 p.m. OK Python 3 TESTS 57 1372 65536000 1700
59845724 youness.amhaouch F Sept. 1, 2019, 9:23 a.m. OK Python 3 TESTS 57 1419 39833600 1700
53591444 grandesonnerie F May 1, 2019, 12:12 a.m. OK Python 3 TESTS 57 1481 44441600 1700
56511770 brosucks F July 4, 2019, 10:47 a.m. OK Python 3 TESTS 57 1528 33484800 1700
55609315 kobae964 F June 16, 2019, 4:18 a.m. OK Rust TESTS 57 234 15257600 1700
55609298 kobae964 F June 16, 2019, 4:17 a.m. OK Rust TESTS 57 248 15257600 1700
55609089 kobae964 F June 16, 2019, 4:06 a.m. OK Rust TESTS 57 249 15257600 1700

remove filters

Back to search problems