Codeforces Round 594 (Div. 1)

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
1239 Codeforces Round 594 (Div. 1) FINISHED False 7200 160260899 Oct. 20, 2019, 9:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 281 ) F Swiper, no swiping! PROGRAMMING graphs implementation 3400

B"In anticipation of new adventures Boots wanted to do a good deed. After discussion with the Map and Backpack, they decided to gift Dora a connected graph. After a long search, Boots chose t graph's variants, which Dora might like. However fox Swiper wants to spoil his plan. The Swiper knows, that Dora now is only able to count up to 3 , so he has came up with a following idea. He wants to steal some non-empty set of vertices, so that the Dora won't notice the loss. He has decided to steal some non-empty set of vertices, so that after deletion of the stolen vertices and edges adjacent to them, every remaining vertex wouldn't change it's degree modulo 3 . The degree of a vertex is the number of edges it is adjacent to. It would've been suspicious to steal all the vertices, so Swiper needs another plan. Boots are sure, that the crime can not be allowed. However they are afraid, that they won't be able to handle this alone. So Boots decided to ask for your help. Please determine for every graph's variant whether the Swiper can perform the theft or not. The first line contains a single integer t ( 1 <= t <= 100 ,000 ) -- the number of graph variants. The first line of each variant contains integers n , m ( 1 <= n <= 500 ,000 , 0 <= m <= 500 ,000 ), the number of vertexes and edges in the graph. Then m lines follow, each containing integers a_i , b_i ( 1 <= a_i, b_i <= n ), the indices of the vertices connected with a corresponding edge. It's guaranteed, that the graph is connected and doesn't contain multiple edges or self-loops. It's guaranteed, that the sum of n over all variants is at most 500 ,000 and that the sum of m over all variants is at most 500 ,000 . Descriptions of graph's variants are separated with an empty line. For each variant: The first line should contain an integer c ( 1 < c < n ), the number of vertices the Crook can steal, without "...

Tutorials

Editorial of Codeforces Round #594 (on the problems of Moscow Team Olympiad)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
64866306 Depth_First_Search F Nov. 14, 2019, 6:22 a.m. OK GNU C++11 TESTS 39 233 35942400 3400
64865844 Depth_First_Search F Nov. 14, 2019, 6:09 a.m. OK GNU C++11 TESTS 39 233 35942400 3400
64866572 hl666 F Nov. 14, 2019, 6:30 a.m. OK GNU C++11 TESTS 39 390 47718400 3400
63370344 lyuankai F Oct. 25, 2019, 9:08 a.m. OK GNU C++11 TESTS 39 420 55603200 3400
63051106 hehezhou F Oct. 21, 2019, 2:32 a.m. OK GNU C++11 TESTS 39 436 36044800 3400
63052455 cuizhuyefei F Oct. 21, 2019, 3:42 a.m. OK GNU C++11 TESTS 39 483 70348800 3400
64667185 duality F Nov. 11, 2019, 3:23 a.m. OK GNU C++11 TESTS 39 607 73830400 3400
64589104 bqq F Nov. 9, 2019, 2:11 p.m. OK GNU C++11 TESTS 39 608 54579200 3400
64139221 frodakcin F Nov. 3, 2019, 8:02 a.m. OK GNU C++11 TESTS 39 623 61952000 3400
63733474 birka0 F Oct. 29, 2019, 2:40 p.m. OK GNU C++11 TESTS 39 1169 115712000 3400
63068681 OYJason F Oct. 21, 2019, 11:42 a.m. OK GNU C++14 TESTS 39 498 61542400 3400
63120329 rhrnald F Oct. 22, 2019, 10:59 a.m. OK GNU C++14 TESTS 39 499 44339200 3400
63121011 rhrnald F Oct. 22, 2019, 11:14 a.m. OK GNU C++14 TESTS 39 529 45363200 3400
63125341 jerome_wei F Oct. 22, 2019, 12:39 p.m. OK GNU C++14 TESTS 39 546 158515200 3400
64767077 busamate F Nov. 12, 2019, 9:12 p.m. OK GNU C++14 TESTS 39 561 40345600 3400
63116669 jerome_wei F Oct. 22, 2019, 9:35 a.m. OK GNU C++14 TESTS 39 561 158515200 3400
63125849 jerome_wei F Oct. 22, 2019, 12:47 p.m. OK GNU C++14 TESTS 39 576 150425600 3400
63092303 MiFaFaOvO F Oct. 21, 2019, 6:58 p.m. OK GNU C++14 TESTS 39 592 61644800 3400
63397586 LODB---D F Oct. 25, 2019, 5:10 p.m. OK GNU C++14 TESTS 39 639 69734400 3400
63016718 MiFaFaOvO F Oct. 20, 2019, 1:07 p.m. OK GNU C++14 TESTS 39 685 61644800 3400
63412086 gongsuidashen F Oct. 26, 2019, 1:30 a.m. OK GNU C++17 TESTS 39 576 155955200 3400
64772101 krijgertje F Nov. 13, 2019, 12:55 a.m. OK GNU C++17 TESTS 39 592 69734400 3400
63012340 littleju F Oct. 20, 2019, 12:01 p.m. OK GNU C++17 TESTS 39 608 53964800 3400
63260021 Siberian F Oct. 23, 2019, 7:47 p.m. OK GNU C++17 TESTS 39 623 52838400 3400
63252312 Nakagawa.Kanon F Oct. 23, 2019, 4:27 p.m. OK GNU C++17 TESTS 39 624 75571200 3400
63498709 SuiT_Up F Oct. 26, 2019, 4:26 p.m. OK GNU C++17 TESTS 39 624 77721600 3400
63292209 RNS_CUS F Oct. 24, 2019, 12:04 p.m. OK GNU C++17 TESTS 39 638 47411200 3400
63115843 gina0605 F Oct. 22, 2019, 9:17 a.m. OK GNU C++17 TESTS 39 639 62771200 3400
63114596 gina0605 F Oct. 22, 2019, 8:52 a.m. OK GNU C++17 TESTS 39 639 63283200 3400
63260542 INVWVZ F Oct. 23, 2019, 8 p.m. OK GNU C++17 TESTS 39 654 27545600 3400

remove filters

Back to search problems