CROC 2016 - Final Round [Private, For Onsite Finalists Only]

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
662 CROC 2016 - Final Round [Private, For Onsite Finalists Only] FINISHED False 7200 271093499 April 15, 2016, 2:15 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1501 ) B Graph Coloring PROGRAMMING dfs and similar graphs 2300

B"You are given an undirected graph that consists of n vertices and m edges. Initially, each edge is colored either red or blue. Each turn a player picks a single vertex and switches the color of all edges incident to it. That is, all red edges with an endpoint in this vertex change the color to blue, while all blue edges with an endpoint in this vertex change the color to red. Find the minimum possible number of moves required to make the colors of all edges equal. The first line of the input contains two integers n and m (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100 xe2 x80 x89000) -- the number of vertices and edges, respectively. The following m lines provide the description of the edges, as the i-th of them contains two integers ui and vi (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ui, xe2 x80 x89vi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n, ui xe2 x80 x89 xe2 x89 xa0 xe2 x80 x89vi) -- the indices of the vertices connected by the i-th edge, and a character ci () providing the initial color of this edge. If ci equals 'R', then this edge is initially colored red. Otherwise, ci is equal to 'B' and this edge is initially colored blue. It's guaranteed that there are no self-loops and multiple edges. If there is no way to make the colors of all edges equal output xe2 x80 x89- xe2 x80 x891 in the only line of the output. Otherwise first output k -- the minimum number of moves required to achieve the goal, then output k integers a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89ak, where ai is equal to the index of the vertex that should be used at the i-th move. If there are multiple optimal sequences of moves, output any of them. "...

Tutorials

Editorial for CROC 2016 Finals and Codeforces Round #347

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
17703661 jiangyx B May 4, 2016, 2:42 a.m. OK FPC TESTS 41 124 7065600 2300
17779054 namjr B May 7, 2016, 1:36 p.m. OK FPC TESTS 41 202 16998400 2300
40984585 ReaLNero1 B July 30, 2018, 7:28 p.m. OK GNU C++ TESTS 41 46 2867200 2300
20902731 jiyutian B Sept. 25, 2016, 7:25 a.m. OK GNU C++ TESTS 41 46 7577600 2300
17437163 130705009 B April 22, 2016, 3:18 p.m. OK GNU C++ TESTS 41 62 5632000 2300
17538162 filipmihov B April 27, 2016, 2:17 p.m. OK GNU C++ TESTS 41 62 5836800 2300
17463858 SanSiroWaltz B April 23, 2016, 12:26 a.m. OK GNU C++ TESTS 41 62 6860800 2300
17588185 brainyuan77 B April 30, 2016, 1:55 a.m. OK GNU C++ TESTS 41 62 7270400 2300
17932131 ClearMind B May 16, 2016, 1:37 p.m. OK GNU C++ TESTS 41 62 8908800 2300
24960764 Magic B Feb. 24, 2017, 9:57 a.m. OK GNU C++ TESTS 41 77 8601600 2300
17377654 Owaski B April 18, 2016, 2:51 p.m. OK GNU C++ TESTS 41 93 7168000 2300
17967204 yusufziya B May 17, 2016, 1 p.m. OK GNU C++ TESTS 41 93 8192000 2300
61988472 SSL_XJQ B Oct. 6, 2019, 2:20 p.m. OK GNU C++11 TESTS 41 46 4300800 2300
52437873 luogu_bot4 B April 7, 2019, 4:59 a.m. OK GNU C++11 TESTS 41 46 4300800 2300
17476104 _0w0_ B April 24, 2016, 4:25 a.m. OK GNU C++11 TESTS 41 46 5836800 2300
28800369 blutrex B July 23, 2017, 12:02 p.m. OK GNU C++11 TESTS 41 62 5324800 2300
17520058 krijgertje B April 26, 2016, 10:27 a.m. OK GNU C++11 TESTS 41 62 5939200 2300
17373909 EZ_fwtt08 B April 18, 2016, 9:57 a.m. OK GNU C++11 TESTS 41 62 7987200 2300
19767684 shadowatyy B Aug. 10, 2016, 2:43 p.m. OK GNU C++11 TESTS 41 62 10035200 2300
44940816 luogu_bot4 B Oct. 27, 2018, 7:42 a.m. OK GNU C++11 TESTS 41 78 5120000 2300
17352577 coderwrong B April 16, 2016, 7:07 p.m. OK GNU C++11 TESTS 41 78 5529600 2300
17529781 xuruifan B April 27, 2016, 12:52 a.m. OK GNU C++11 TESTS 41 78 8704000 2300
32795134 NiroBC B Nov. 30, 2017, 4:30 a.m. OK GNU C++14 TESTS 41 93 5836800 2300
20901139 haleyk100198 B Sept. 25, 2016, 5:45 a.m. OK GNU C++14 TESTS 41 93 7680000 2300
40619569 vjudge3 B July 21, 2018, 10:56 p.m. OK GNU C++14 TESTS 41 93 7782400 2300
25545458 vjudge5 B March 16, 2017, 10:48 a.m. OK GNU C++14 TESTS 41 93 10137600 2300
33990643 Antoine B Jan. 7, 2018, 8:36 p.m. OK GNU C++14 TESTS 41 93 11264000 2300
20957330 rkanine B Sept. 27, 2016, 10:26 p.m. OK GNU C++14 TESTS 41 108 7680000 2300
34043326 ArshiaDadras B Jan. 9, 2018, 7:52 a.m. OK GNU C++14 TESTS 41 108 10137600 2300
31471757 nong B Oct. 18, 2017, 7:19 a.m. OK GNU C++14 TESTS 41 108 14643200 2300
21517930 Motarack B Oct. 17, 2016, 11:50 a.m. OK GNU C++14 TESTS 41 109 8294400 2300
31472003 smu201111192 B Oct. 18, 2017, 7:26 a.m. OK GNU C++14 TESTS 41 109 9318400 2300
50644671 ivan100sic B March 1, 2019, 3:18 p.m. OK GNU C++17 TESTS 41 77 9625600 2300
55695734 shubham__36 B June 17, 2019, 9:45 p.m. OK GNU C++17 TESTS 41 108 11878400 2300
48466161 rahulb B Jan. 16, 2019, 5:20 p.m. OK GNU C++17 TESTS 41 108 13721600 2300
49911355 singhrahul15114024 B Feb. 14, 2019, 2:20 p.m. OK GNU C++17 TESTS 41 109 9011200 2300
68856604 vjudge4 B Jan. 15, 2020, 10:50 a.m. OK GNU C++17 TESTS 41 124 11878400 2300
59525254 Mahir83 B Aug. 26, 2019, 1:12 p.m. OK GNU C++17 TESTS 41 124 13414400 2300
57447280 aviroop123 B July 21, 2019, 8:36 a.m. OK GNU C++17 TESTS 41 139 9011200 2300
56069844 steins2916 B June 26, 2019, 9:51 a.m. OK GNU C++17 TESTS 41 139 13107200 2300
59467956 Phortox B Aug. 25, 2019, 3:24 p.m. OK GNU C++17 TESTS 41 140 7987200 2300
37008579 yaksha B April 5, 2018, 10:32 p.m. OK GNU C++17 TESTS 41 140 17612800 2300
17421955 mengsungwu B April 21, 2016, 3:49 p.m. OK Go TESTS 41 389 30822400 2300
17766647 J1GS4W B May 6, 2016, 7:03 p.m. OK Java 7 TESTS 41 389 62976000 2300
17704460 alibaba B May 4, 2016, 5:38 a.m. OK Java 7 TESTS 41 592 68710400 2300
17328437 Egor B April 15, 2016, 2:44 p.m. OK Java 8 TESTS 40 280 7475200 2300
17828231 AlexFetisov B May 10, 2016, 7:03 a.m. OK Java 8 TESTS 41 405 45056000 2300
17328197 mmaxio B April 15, 2016, 2:28 p.m. OK Java 8 TESTS 40 421 32051200 2300
17809561 jagauthier B May 8, 2016, 3:13 p.m. OK Java 8 TESTS 41 421 57958400 2300
17328174 niyaznigmatul B April 15, 2016, 2:27 p.m. OK Java 8 TESTS 40 436 34918400 2300
17328654 VArtem B April 15, 2016, 2:57 p.m. OK Java 8 TESTS 40 452 35635200 2300
17378286 edorundo B April 18, 2016, 3:41 p.m. OK Java 8 TESTS 41 483 38707200 2300
17328298 qwerty787788 B April 15, 2016, 2:35 p.m. OK Java 8 TESTS 40 499 36249600 2300
17373014 darnley B April 18, 2016, 8:22 a.m. OK Java 8 TESTS 41 592 43110400 2300
17328147 V--o_o--V B April 15, 2016, 2:25 p.m. OK MS C++ TESTS 40 249 14950400 2300
42133773 Mk_Python_v1 B Aug. 26, 2018, 9:04 p.m. OK Python 2 TESTS 41 982 28774400 2300

remove filters

Back to search problems