Codeforces Round 652 (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
1369 Codeforces Round 652 (Div. 2) FINISHED False 7200 144431711 June 23, 2020, 2:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 665 ) F BareLee PROGRAMMING dfs and similar dp games 2700

B'Lee is used to finish his stories in a stylish way, this time he barely failed it, but Ice Bear came and helped him. Lee is so grateful for it, so he decided to show Ice Bear his new game called "Critic"... The game is a one versus one game. It has t rounds, each round has two integers s_i and e_i (which are determined and are known before the game begins, s_i and e_i may differ from round to round). The integer s_i is written on the board at the beginning of the corresponding round. The players will take turns. Each player will erase the number on the board (let 's say it was a ) and will choose to write either 2 cdot a or a + 1 instead. Whoever writes a number strictly greater than e_i loses that round and the other one wins that round. Now Lee wants to play "Critic" against Ice Bear, for each round he has chosen the round 's s_i and e_i in advance. Lee will start the first round, the loser of each round will start the next round. The winner of the last round is the winner of the game, and the loser of the last round is the loser of the game. Determine if Lee can be the winner independent of Ice Bear 's moves or not. Also, determine if Lee can be the loser independent of Ice Bear 's moves or not. The first line contains the integer t ( 1 <= t <= 10^5 ) -- the number of rounds the game has. Then t lines follow, each contains two integers s_i and e_i ( 1 <= s_i <= e_i <= 10^{18} ) -- the i -th round 's information. The rounds are played in the same order as given in input, s_i and e_i for all rounds are known to everyone before the game starts. Print two integers. The first one should be 1 if Lee can be the winner independent of Ice Bear 's moves, and 0 otherwise. The second one should be 1 if Lee can be the loser independent of Ice Bear 's moves, and 0 otherwise. Remember, whoever writes an integer greater than e_i loses. '...

Tutorials

Codeforces Round #652 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
84777751 rainboy F June 23, 2020, 2:36 p.m. OK GNU C11 TESTS 63 140 5529600 2700
84845078 yuyue F June 24, 2020, 1:23 a.m. OK GNU C++11 TESTS 63 46 7782400 2700
84845536 jhknmj F June 24, 2020, 1:41 a.m. OK GNU C++11 TESTS 63 46 12185600 2700
84819664 yajnun F June 23, 2020, 4:46 p.m. OK GNU C++11 TESTS 63 61 5120000 2700
84847076 Lab-Tree F June 24, 2020, 2:28 a.m. OK GNU C++11 TESTS 63 78 3993600 2700
84843389 anodiebird F June 24, 2020, 12:16 a.m. OK GNU C++11 TESTS 63 78 4096000 2700
84853812 JJLeo F June 24, 2020, 5:04 a.m. OK GNU C++11 TESTS 63 78 4096000 2700
84856211 stevenzhang F June 24, 2020, 5:42 a.m. OK GNU C++11 TESTS 63 78 4300800 2700
84856930 stevenzhang F June 24, 2020, 5:52 a.m. OK GNU C++11 TESTS 63 78 4300800 2700
84848132 lavenderwithbluish F June 24, 2020, 2:57 a.m. OK GNU C++11 TESTS 63 78 28160000 2700
84856416 stevenzhang F June 24, 2020, 5:45 a.m. OK GNU C++11 TESTS 63 93 4300800 2700
84812291 lucaperju F June 23, 2020, 3:53 p.m. OK GNU C++14 TESTS 63 108 6348800 2700
84840518 kal013 F June 23, 2020, 10:14 p.m. OK GNU C++14 TESTS 63 109 4505600 2700
84818473 toothbrush F June 23, 2020, 4:39 p.m. OK GNU C++14 TESTS 63 109 5324800 2700
84848425 ayushsinghiitr F June 24, 2020, 3:04 a.m. OK GNU C++14 TESTS 63 109 5324800 2700
84818269 jo_on F June 23, 2020, 4:38 p.m. OK GNU C++14 TESTS 63 109 5529600 2700
84822906 QFYNH F June 23, 2020, 5:15 p.m. OK GNU C++14 TESTS 63 109 6963200 2700
84833796 Arg_007 F June 23, 2020, 7:39 p.m. OK GNU C++14 TESTS 63 109 9113600 2700
84797563 Yousef_Salama F June 23, 2020, 3:14 p.m. OK GNU C++14 TESTS 63 124 18124800 2700
84785825 Mohammad.H915 F June 23, 2020, 2:50 p.m. OK GNU C++14 TESTS 63 186 7782400 2700
84805615 Steve_Wolfe F June 23, 2020, 3:34 p.m. OK GNU C++14 TESTS 63 249 6963200 2700
84848497 liouzhou_101 F June 24, 2020, 3:06 a.m. OK GNU C++17 TESTS 63 62 20172800 2700
84835288 VEGAnn F June 23, 2020, 8:07 p.m. OK GNU C++17 TESTS 63 108 4505600 2700
84854971 ANZ1217 F June 24, 2020, 5:23 a.m. OK GNU C++17 TESTS 63 108 4812800 2700
84838903 Nanored F June 23, 2020, 9:25 p.m. OK GNU C++17 TESTS 63 109 3686400 2700
84813232 Mlxa F June 23, 2020, 3:55 p.m. OK GNU C++17 TESTS 63 109 3788800 2700
84838846 Nanored F June 23, 2020, 9:23 p.m. OK GNU C++17 TESTS 63 109 3788800 2700
84833438 N.N_2004 F June 23, 2020, 7:34 p.m. OK GNU C++17 TESTS 63 109 3788800 2700
84839765 TShT F June 23, 2020, 9:50 p.m. OK GNU C++17 TESTS 63 109 4710400 2700
84844177 9baka_Cirno F June 24, 2020, 12:45 a.m. OK GNU C++17 TESTS 63 109 5324800 2700
84847990 Drice F June 24, 2020, 2:53 a.m. OK GNU C++17 TESTS 63 109 5324800 2700
84815382 timf1089 F June 23, 2020, 4:01 p.m. OK GNU C++17 (64) TESTS 63 77 4608000 2700
84818897 mvavmvevt F June 23, 2020, 4:41 p.m. OK GNU C++17 (64) TESTS 63 77 5324800 2700
84821309 Egor.Lifar F June 23, 2020, 4:59 p.m. OK GNU C++17 (64) TESTS 63 77 6144000 2700
84798364 kefaa2 F June 23, 2020, 3:16 p.m. OK GNU C++17 (64) TESTS 63 77 6144000 2700
84796637 jiangly F June 23, 2020, 3:12 p.m. OK GNU C++17 (64) TESTS 63 77 6144000 2700
84845105 lsantire F June 24, 2020, 1:24 a.m. OK GNU C++17 (64) TESTS 63 77 6144000 2700
84815774 neal F June 23, 2020, 4:02 p.m. OK GNU C++17 (64) TESTS 63 77 6348800 2700
84848407 joseacaz F June 24, 2020, 3:03 a.m. OK GNU C++17 (64) TESTS 63 78 4608000 2700
84810059 Ari F June 23, 2020, 3:46 p.m. OK GNU C++17 (64) TESTS 63 78 4608000 2700
84795613 Geothermal F June 23, 2020, 3:10 p.m. OK GNU C++17 (64) TESTS 63 78 4915200 2700
84818164 buj F June 23, 2020, 4:38 p.m. OK Haskell TESTS 63 1232 120832000 2700
84829720 uwi F June 23, 2020, 6:37 p.m. OK Java 11 TESTS 63 280 24064000 2700
84818392 PizzaLovers007 F June 23, 2020, 4:39 p.m. OK Java 11 TESTS 63 343 24064000 2700
84792736 SecondThread F June 23, 2020, 3:04 p.m. OK Java 11 TESTS 63 390 24064000 2700
84835783 Dukkha F June 23, 2020, 8:17 p.m. OK Java 11 TESTS 63 639 24780800 2700
84829540 Magikarp1 F June 23, 2020, 6:34 p.m. OK Java 8 TESTS 63 249 20480000 2700
84826278 Hakiobo F June 23, 2020, 5:53 p.m. OK Kotlin TESTS 63 187 20992000 2700
84826371 Hakiobo F June 23, 2020, 5:54 p.m. OK Kotlin TESTS 63 202 20992000 2700
84818041 Hakiobo F June 23, 2020, 4:38 p.m. OK Kotlin TESTS 63 202 20992000 2700
84812015 MikasaAckermann F June 23, 2020, 3:52 p.m. OK Kotlin TESTS 63 966 22937600 2700
84831614 MarekW123 F June 23, 2020, 7:06 p.m. OK PyPy 3 TESTS 63 1497 47001600 2700

remove filters

Back to search problems