Codeforces Round 571 (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
1186 Codeforces Round 571 (Div. 2) FINISHED False 8100 175729187 June 28, 2019, 8:20 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 803 ) F Vus the Cossack and a Graph PROGRAMMING dfs and similar graphs greedy implementation 2300

B'Vus the Cossack has a simple graph with n vertices and m edges. Let d_i be a degree of the i -th vertex. Recall that a degree of the i -th vertex is the number of conected edges to the i -th vertex. He needs to remain not more than lceil frac{n+m}{2} rceil edges. Let f_i be the degree of the i -th vertex after removing. He needs to delete them in such way so that lceil frac{d_i}{2} rceil <= q f_i for each i . In other words, the degree of each vertex should not be reduced more than twice. Help Vus to remain the needed edges! The first line contains two integers n and m ( 1 <= q n <= q 10^6 , 0 <= q m <= q 10^6 ) -- the number of vertices and edges respectively. Each of the next m lines contains two integers u_i and v_i ( 1 <= q u_i, v_i <= q n ) -- vertices between which there is an edge. It is guaranteed that the graph does not have loops and multiple edges. It is possible to show that the answer always exists. In the first line, print one integer k ( 0 <= q k <= q lceil frac{n+m}{2} rceil ) -- the number of edges which you need to remain. In each of the next k lines, print two integers u_i and v_i ( 1 <= q u_i, v_i <= q n ) -- the vertices, the edge between which, you need to remain. You can not print the same edge more than once. '...

Tutorials

E

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
56248031 Frame233 F June 28, 2019, 11:24 p.m. OK GNU C++11 TESTS 33 296 21094400 2300
56228133 Frame233 F June 28, 2019, 1:22 p.m. OK GNU C++11 TESTS 32 327 21094400 2300
56304873 wasa855 F June 30, 2019, 11:12 a.m. OK GNU C++11 TESTS 33 343 21094400 2300
56215522 EZ4DSG F June 28, 2019, 9:44 a.m. OK GNU C++11 TESTS 32 374 24064000 2300
56231874 okwedook F June 28, 2019, 2:34 p.m. OK GNU C++11 TESTS 32 389 16076800 2300
56232234 okwedook F June 28, 2019, 2:41 p.m. OK GNU C++11 TESTS 32 404 16998400 2300
56231853 okwedook F June 28, 2019, 2:33 p.m. OK GNU C++11 TESTS 32 405 16076800 2300
56232891 okwedook F June 28, 2019, 2:56 p.m. OK GNU C++11 TESTS 32 405 16998400 2300
56222398 msuwakow F June 28, 2019, 10:28 a.m. OK GNU C++11 TESTS 32 405 22016000 2300
56248961 Dilute F June 29, 2019, 12:51 a.m. OK GNU C++11 TESTS 33 420 21606400 2300
56276652 ddxm F June 29, 2019, 2:35 p.m. OK GNU C++14 TESTS 33 592 24064000 2300
56232855 SlowDecay F June 28, 2019, 2:55 p.m. OK GNU C++14 TESTS 32 607 28672000 2300
56248384 jack_123456789 F June 28, 2019, 11:56 p.m. OK GNU C++14 TESTS 33 623 29081600 2300
56233273 Hacheylight F June 28, 2019, 3:05 p.m. OK GNU C++14 TESTS 32 639 21094400 2300
56233640 sonhv3112 F June 28, 2019, 3:14 p.m. OK GNU C++14 TESTS 32 639 28774400 2300
56434883 vjudge1 F July 2, 2019, 1:41 p.m. OK GNU C++14 TESTS 33 685 20070400 2300
58085396 phg0804 F July 31, 2019, 3:22 p.m. OK GNU C++14 TESTS 33 686 20684800 2300
59214790 vjudge3 F Aug. 21, 2019, 9:48 a.m. OK GNU C++14 TESTS 33 686 21708800 2300
56276603 ddxm F June 29, 2019, 2:33 p.m. OK GNU C++14 TESTS 33 686 24064000 2300
56252091 luogu_bot1 F June 29, 2019, 4:04 a.m. OK GNU C++14 TESTS 33 701 29696000 2300
56273157 LordVoIdebug F June 29, 2019, 12:58 p.m. OK GNU C++17 TESTS 33 202 28774400 2300
56273136 LordVoIdebug F June 29, 2019, 12:58 p.m. OK GNU C++17 TESTS 33 374 57344000 2300
56474088 F.J F July 3, 2019, 12:24 p.m. OK GNU C++17 TESTS 33 530 172134400 2300
56249849 njtech1401170211 F June 29, 2019, 2 a.m. OK GNU C++17 TESTS 33 608 20070400 2300
57632753 kozyuk F July 24, 2019, 9:22 a.m. OK GNU C++17 TESTS 33 623 21094400 2300
56733262 Kirin_Sunset F July 9, 2019, 3:10 a.m. OK GNU C++17 TESTS 33 623 21094400 2300
56258033 azxg F June 29, 2019, 6:56 a.m. OK GNU C++17 TESTS 33 623 40140800 2300
56761980 kozyuk F July 9, 2019, 4:18 p.m. OK GNU C++17 TESTS 33 639 21094400 2300
56432851 201831990439 F July 2, 2019, 12:50 p.m. OK GNU C++17 TESTS 33 654 25088000 2300
60463882 2om_neek F Sept. 12, 2019, 11:03 p.m. OK GNU C++17 TESTS 33 655 28672000 2300
59877257 beginner1010 F Sept. 2, 2019, 1:11 a.m. OK Java 8 TESTS 33 655 42496000 2300
56248546 Ahmad F June 29, 2019, 12:13 a.m. OK Java 8 TESTS 33 826 81920000 2300
56222421 I_Coached_Alex_R_Coleman F June 28, 2019, 10:28 a.m. OK Java 8 TESTS 32 1122 130355200 2300
56216591 uwi F June 28, 2019, 9:49 a.m. OK Java 8 TESTS 32 2152 230809600 2300
56570703 SpargelTarzan F July 5, 2019, 3:31 p.m. OK Java 8 TESTS 33 3026 248729600 2300
59212583 vjudge1 F Aug. 21, 2019, 9:02 a.m. OK MS C++ TESTS 33 545 21094400 2300
59379179 vjudge1 F Aug. 24, 2019, 1:30 a.m. OK MS C++ TESTS 33 655 23552000 2300
59214866 vjudge4 F Aug. 21, 2019, 9:50 a.m. OK MS C++ TESTS 33 795 30617600 2300
59400504 vjudge3 F Aug. 24, 2019, 11:56 a.m. OK MS C++ TESTS 33 1387 142950400 2300
59431502 vjudge4 F Aug. 25, 2019, 6:30 a.m. OK MS C++ TESTS 33 1450 203059200 2300
56273744 LordVoIdebug F June 29, 2019, 1:14 p.m. OK MS C++ 2017 TESTS 33 140 26214400 2300
56273541 LordVoIdebug F June 29, 2019, 1:09 p.m. OK MS C++ 2017 TESTS 33 155 26214400 2300
56274894 LordVoIdebug F June 29, 2019, 1:46 p.m. OK MS C++ 2017 TESTS 33 170 26214400 2300
56273871 LordVoIdebug F June 29, 2019, 1:18 p.m. OK MS C++ 2017 TESTS 33 170 26726400 2300
56273362 LordVoIdebug F June 29, 2019, 1:04 p.m. OK MS C++ 2017 TESTS 33 171 26214400 2300
56274814 LordVoIdebug F June 29, 2019, 1:44 p.m. OK MS C++ 2017 TESTS 33 171 26726400 2300
56273950 LordVoIdebug F June 29, 2019, 1:20 p.m. OK MS C++ 2017 TESTS 33 186 26214400 2300
56300881 omerb.zeybek F June 30, 2019, 8:48 a.m. OK MS C++ 2017 TESTS 33 1949 20172800 2300
56232473 P___ F June 28, 2019, 2:47 p.m. OK MS C++ 2017 TESTS 32 2323 127897600 2300
56223235 P___ F June 28, 2019, 10:34 a.m. OK MS C++ 2017 TESTS 32 2542 127897600 2300
59911816 pajenegod F Sept. 2, 2019, 5:32 p.m. OK PyPy 2 TESTS 33 1934 171315200 2300
59909678 pajenegod F Sept. 2, 2019, 4:46 p.m. OK PyPy 2 TESTS 33 1996 170905600 2300
59909477 pajenegod F Sept. 2, 2019, 4:41 p.m. OK PyPy 2 TESTS 33 2011 171110400 2300
69926689 pajenegod F Jan. 31, 2020, 8:46 p.m. OK PyPy 2 TESTS 33 2261 184729600 2300
59880021 pajenegod F Sept. 2, 2019, 4:02 a.m. OK PyPy 2 TESTS 33 2761 208179200 2300
59880006 pajenegod F Sept. 2, 2019, 4:02 a.m. OK PyPy 2 TESTS 33 2776 222105600 2300
59880462 pajenegod F Sept. 2, 2019, 4:27 a.m. OK PyPy 2 TESTS 33 2839 227737600 2300
59878072 pajenegod F Sept. 2, 2019, 2:06 a.m. OK PyPy 2 TESTS 33 3104 231628800 2300
59877860 pajenegod F Sept. 2, 2019, 1:52 a.m. OK PyPy 2 TESTS 33 3104 256819200 2300
59878001 pajenegod F Sept. 2, 2019, 2:02 a.m. OK PyPy 2 TESTS 33 3119 231628800 2300
59878280 pajenegod F Sept. 2, 2019, 2:21 a.m. OK PyPy 3 TESTS 33 3368 258150400 2300

remove filters

Back to search problems