Codeforces Round 630 (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
1332 Codeforces Round 630 (Div. 2) FINISHED False 9000 151691111 March 31, 2020, 1:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3900 ) E Height All the Same PROGRAMMING combinatorics constructive algorithms math matrices 2100

B"Alice has got addicted to a game called Sirtet recently. In Sirtet, player is given an n x m grid. Initially a_{i,j} cubes are stacked up in the cell (i,j) . Two cells are called adjacent if they share a side. Player can perform the following operations: Cubes mentioned above are identical in height. Here is an illustration of the game. States on the right are obtained by performing one of the above operations on the state on the left, and grey cubes are added due to the operation. Player's goal is to make the height of all cells the same (i.e. so that each cell has the same number of cubes in it) using above operations. Alice, however, has found out that on some starting grids she may never reach the goal no matter what strategy she uses. Thus, she is wondering the number of initial grids such that Please help Alice with it. Notice that the answer might be large, please output the desired value modulo 998,244,353 . The only line contains four integers n , m , L and R ( 1 <= n,m,L,R <= 10^9 , L <= R , n cdot m ge 2 ). Output one integer, representing the desired answer modulo 998,244,353 . In the first sample, the only initial grid that satisfies the requirements is a_{1,1}=a_{2,1}=a_{1,2}=a_{2,2}=1 . Thus the answer should be 1 . In the second sample, initial grids that satisfy the requirements are a_{1,1}=a_{1,2}=1 and a_{1,1}=a_{1,2}=2 . Thus the answer should be 2 . "...

Tutorials

Codeforces Round #630 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
75030363 yijan E April 1, 2020, 1:21 a.m. OK Clang++17 Diagnostics TESTS 58 46 0 2100
74986306 rainboy E March 31, 2020, 3:39 p.m. OK GNU C11 TESTS 57 31 0 2100
75307744 AKASHLENKA E April 3, 2020, 4:22 a.m. OK GNU C11 TESTS 58 31 204800 2100
74983320 pengin_2000 E March 31, 2020, 3:30 p.m. OK GNU C11 TESTS 57 31 204800 2100
75199928 nimom E April 2, 2020, 4:48 a.m. OK GNU C++11 TESTS 58 30 0 2100
75003060 Kerpoo E March 31, 2020, 5:35 p.m. OK GNU C++11 TESTS 58 30 0 2100
75001826 bruno.iljazovic E March 31, 2020, 5:25 p.m. OK GNU C++11 TESTS 58 30 0 2100
75350791 Hry_233 E April 3, 2020, 2:05 p.m. OK GNU C++11 TESTS 58 30 0 2100
75316651 No_Comment E April 3, 2020, 6:57 a.m. OK GNU C++11 TESTS 58 30 0 2100
75530572 dblark E April 5, 2020, 3:16 a.m. OK GNU C++11 TESTS 58 30 102400 2100
75031618 DWAE86 E April 1, 2020, 2 a.m. OK GNU C++11 TESTS 58 30 204800 2100
76279599 Jame_Kuma E April 12, 2020, 2:45 a.m. OK GNU C++11 TESTS 58 30 307200 2100
76314020 HOJQVFNA E April 12, 2020, 10:02 a.m. OK GNU C++11 TESTS 58 31 0 2100
76277607 wygz E April 12, 2020, 1:53 a.m. OK GNU C++11 TESTS 58 31 0 2100
75041399 Charles1999 E April 1, 2020, 5:25 a.m. OK GNU C++14 TESTS 58 30 0 2100
75040928 lvao-x E April 1, 2020, 5:18 a.m. OK GNU C++14 TESTS 58 30 0 2100
75031716 TheShadow_DC E April 1, 2020, 2:03 a.m. OK GNU C++14 TESTS 58 30 0 2100
75026646 jiufeng E March 31, 2020, 11:29 p.m. OK GNU C++14 TESTS 58 30 0 2100
75732655 tac E April 7, 2020, 10:17 a.m. OK GNU C++14 TESTS 58 30 0 2100
75016926 Sisyy E March 31, 2020, 7:57 p.m. OK GNU C++14 TESTS 58 30 0 2100
75014714 W_Marlin E March 31, 2020, 7:25 p.m. OK GNU C++14 TESTS 58 30 0 2100
75793313 BBehemothh E April 8, 2020, 12:31 a.m. OK GNU C++14 TESTS 58 30 0 2100
75019617 Podolyanochka E March 31, 2020, 8:39 p.m. OK GNU C++14 TESTS 58 30 0 2100
75350891 AkJn E April 3, 2020, 2:06 p.m. OK GNU C++14 TESTS 58 30 0 2100
76029120 aaryandosaj E April 9, 2020, 6:47 p.m. OK GNU C++17 TESTS 58 30 0 2100
75621124 Diegogrc E April 6, 2020, 4:09 a.m. OK GNU C++17 TESTS 58 30 0 2100
75326356 KKJYOvO E April 3, 2020, 9:13 a.m. OK GNU C++17 TESTS 58 30 0 2100
75290838 _trojan_horse E April 2, 2020, 9:11 p.m. OK GNU C++17 TESTS 58 30 0 2100
75155795 smiling_addu E April 1, 2020, 4:21 p.m. OK GNU C++17 TESTS 58 30 0 2100
75068508 efyjef E April 1, 2020, 10:38 a.m. OK GNU C++17 TESTS 58 30 0 2100
75062165 suun E April 1, 2020, 9:31 a.m. OK GNU C++17 TESTS 58 30 0 2100
75040588 shukeshukeshuke E April 1, 2020, 5:13 a.m. OK GNU C++17 TESTS 58 30 0 2100
75038467 WeirdBugsButOkay E April 1, 2020, 4:36 a.m. OK GNU C++17 TESTS 58 30 0 2100
75032388 Joker_Gamer E April 1, 2020, 2:23 a.m. OK GNU C++17 TESTS 58 30 0 2100
75061016 Milan_ E April 1, 2020, 9:18 a.m. OK GNU C++17 (64) TESTS 58 15 0 2100
75023634 Milan_ E March 31, 2020, 10 p.m. OK GNU C++17 (64) TESTS 58 15 0 2100
75022723 animal-liberty E March 31, 2020, 9:40 p.m. OK GNU C++17 (64) TESTS 58 30 0 2100
74998272 Ernestico E March 31, 2020, 4:59 p.m. OK GNU C++17 (64) TESTS 57 30 0 2100
74986327 AryaPawn E March 31, 2020, 3:39 p.m. OK GNU C++17 (64) TESTS 57 30 0 2100
74979328 _wwc_ E March 31, 2020, 3:20 p.m. OK GNU C++17 (64) TESTS 57 30 0 2100
76330641 sugarrr E April 12, 2020, 1:35 p.m. OK GNU C++17 (64) TESTS 58 30 0 2100
75189161 Falcon__ E April 1, 2020, 11:52 p.m. OK GNU C++17 (64) TESTS 58 30 0 2100
75083441 qazswedx2 E April 1, 2020, 1:16 p.m. OK GNU C++17 (64) TESTS 58 30 0 2100
76436099 Akulyat E April 12, 2020, 11:26 p.m. OK GNU C++17 (64) TESTS 58 31 0 2100
75145115 sonlh07 E April 1, 2020, 3:50 p.m. OK Go TESTS 58 46 0 2100
75176252 sonlh07 E April 1, 2020, 7:33 p.m. OK Go TESTS 58 46 102400 2100
75621430 Russell_Emerine E April 6, 2020, 4:18 a.m. OK Haskell TESTS 58 31 102400 2100
75211874 happy15 E April 2, 2020, 7:24 a.m. OK Java 11 TESTS 58 171 0 2100
75062744 jenish9599 E April 1, 2020, 9:37 a.m. OK Java 11 TESTS 58 171 0 2100
75062353 jenish9599 E April 1, 2020, 9:33 a.m. OK Java 11 TESTS 58 171 0 2100
75007112 TheSawan E March 31, 2020, 6:16 p.m. OK Java 11 TESTS 58 171 0 2100
74995450 wackloner E March 31, 2020, 4:04 p.m. OK Java 11 TESTS 57 186 0 2100
74990769 polyakoff E March 31, 2020, 3:53 p.m. OK Java 11 TESTS 57 186 0 2100
75667839 saminrahmankhan E April 6, 2020, 2:52 p.m. OK Java 11 TESTS 58 187 204800 2100
76295820 foumani E April 12, 2020, 6:51 a.m. OK Java 11 TESTS 58 202 0 2100
75734751 alankritanand001 E April 7, 2020, 10:45 a.m. OK Java 11 TESTS 58 202 0 2100
75071212 polyakoff E April 1, 2020, 11:07 a.m. OK Java 11 TESTS 58 202 0 2100
75990174 satya26 E April 9, 2020, 12:35 p.m. OK Java 8 TESTS 58 109 0 2100
75784742 mandark27 E April 7, 2020, 8:36 p.m. OK Java 8 TESTS 58 109 0 2100
75694021 spar5h E April 6, 2020, 8:24 p.m. OK Java 8 TESTS 58 109 0 2100
75071249 polyakoff E April 1, 2020, 11:07 a.m. OK Java 8 TESTS 58 109 0 2100
75064250 pulkit14 E April 1, 2020, 9:53 a.m. OK Java 8 TESTS 58 109 0 2100
75026395 AdhmMohamed E March 31, 2020, 11:21 p.m. OK Java 8 TESTS 58 109 0 2100
75025295 AdhmMohamed E March 31, 2020, 10:45 p.m. OK Java 8 TESTS 58 109 0 2100
75023546 Oopsimbad E March 31, 2020, 9:58 p.m. OK Java 8 TESTS 58 109 0 2100
75018374 derrick20 E March 31, 2020, 8:18 p.m. OK Java 8 TESTS 58 109 0 2100
75676755 eng_hardik E April 6, 2020, 4:33 p.m. OK Java 8 TESTS 58 124 0 2100
75076704 Spheniscine E April 1, 2020, 12:05 p.m. OK Kotlin TESTS 58 124 0 2100
75034889 schmak.ekb E April 1, 2020, 3:22 a.m. OK Kotlin TESTS 58 124 0 2100
75076161 Spheniscine E April 1, 2020, 11:59 a.m. OK Kotlin TESTS 58 124 0 2100
74981320 Sergey.Bankevich E March 31, 2020, 3:25 p.m. OK Kotlin TESTS 57 155 204800 2100
75074337 Hakiobo E April 1, 2020, 11:40 a.m. OK Kotlin TESTS 58 155 614400 2100
75073554 Spheniscine E April 1, 2020, 11:32 a.m. OK Kotlin TESTS 58 155 1638400 2100
75031424 camypaper E April 1, 2020, 1:54 a.m. OK Mono C# TESTS 58 62 102400 2100
74998858 hibatibati E March 31, 2020, 5:03 p.m. OK Mono C# TESTS 57 62 1638400 2100
75183392 hibatibati E April 1, 2020, 9:22 p.m. OK Mono C# TESTS 58 62 1638400 2100
75183029 hibatibati E April 1, 2020, 9:16 p.m. OK Mono C# TESTS 58 62 1638400 2100
74989755 Yupiteru E March 31, 2020, 3:49 p.m. OK Mono C# TESTS 57 62 136192000 2100
75082435 Paranoid19 E April 1, 2020, 1:06 p.m. OK MS C++ TESTS 58 31 0 2100
76029824 NotEvenWrong E April 9, 2020, 6:55 p.m. OK MS C++ TESTS 58 31 0 2100
74981065 Bullbas E March 31, 2020, 3:25 p.m. OK MS C++ TESTS 57 46 0 2100
75071236 wp32pw E April 1, 2020, 11:07 a.m. OK MS C++ 2017 TESTS 58 31 0 2100
76233009 vjudge1 E April 11, 2020, 5:05 a.m. OK MS C++ 2017 TESTS 58 31 0 2100
75513286 Ivan_Dunko E April 4, 2020, 6:37 p.m. OK MS C++ 2017 TESTS 58 31 0 2100
75471018 omerb.zeybek E April 4, 2020, 9:18 a.m. OK MS C++ 2017 TESTS 58 31 0 2100
75308978 LeBronGod E April 3, 2020, 4:51 a.m. OK MS C++ 2017 TESTS 58 31 0 2100
75274107 Hatzker E April 2, 2020, 5:52 p.m. OK MS C++ 2017 TESTS 58 31 0 2100
75089398 Monotonic E April 1, 2020, 2:13 p.m. OK MS C++ 2017 TESTS 58 31 0 2100
75075307 wp32pw E April 1, 2020, 11:50 a.m. OK MS C++ 2017 TESTS 58 31 0 2100
75074695 wp32pw E April 1, 2020, 11:44 a.m. OK MS C++ 2017 TESTS 58 31 0 2100
75070621 wp32pw E April 1, 2020, 11:01 a.m. OK MS C++ 2017 TESTS 58 31 0 2100
75056288 bazzyadb E April 1, 2020, 8:24 a.m. OK PyPy 2 TESTS 58 124 0 2100
75043616 anshuman16423 E April 1, 2020, 5:55 a.m. OK PyPy 2 TESTS 58 156 0 2100
75525493 tiagoshibata E April 4, 2020, 11:37 p.m. OK PyPy 3 TESTS 58 140 0 2100
75505215 vlad.iftimescu E April 4, 2020, 4:41 p.m. OK PyPy 3 TESTS 58 140 0 2100
75485129 _cielll_ E April 4, 2020, 12:35 p.m. OK PyPy 3 TESTS 58 140 0 2100
75470069 Egor_Bugaev E April 4, 2020, 9:04 a.m. OK PyPy 3 TESTS 58 140 0 2100
75255462 aberent E April 2, 2020, 3:05 p.m. OK PyPy 3 TESTS 58 140 0 2100
75168965 kishan2343532 E April 1, 2020, 6:04 p.m. OK PyPy 3 TESTS 58 140 0 2100
75162005 dlz666 E April 1, 2020, 4:50 p.m. OK PyPy 3 TESTS 58 140 0 2100
75044023 vrishinvv E April 1, 2020, 6:01 a.m. OK PyPy 3 TESTS 58 140 0 2100
75042017 chaitanya E April 1, 2020, 5:34 a.m. OK PyPy 3 TESTS 58 140 0 2100
75040539 AvinashKartik E April 1, 2020, 5:12 a.m. OK PyPy 3 TESTS 58 140 0 2100
74988591 Jobless22 E March 31, 2020, 3:46 p.m. OK Python 2 TESTS 57 187 0 2100
75469415 vardhan_cm E April 4, 2020, 8:54 a.m. OK Python 3 TESTS 58 108 0 2100
75011501 Anmol321 E March 31, 2020, 6:43 p.m. OK Python 3 TESTS 58 108 0 2100
75221583 kabeer27 E April 2, 2020, 9:31 a.m. OK Python 3 TESTS 58 108 307200 2100
75055052 __ACoder E April 1, 2020, 8:09 a.m. OK Python 3 TESTS 58 108 307200 2100
76446604 illuminati_XY E April 13, 2020, 3:58 a.m. OK Python 3 TESTS 58 109 0 2100
75798087 Arpanjain.g E April 8, 2020, 3:11 a.m. OK Python 3 TESTS 58 109 0 2100
75641012 bigdekopon E April 6, 2020, 9:20 a.m. OK Python 3 TESTS 58 109 0 2100
75540604 X-knight E April 5, 2020, 6:49 a.m. OK Python 3 TESTS 58 109 0 2100
75320987 RaDaDiYaMoHiT E April 3, 2020, 8 a.m. OK Python 3 TESTS 58 109 0 2100
75281177 dtushar E April 2, 2020, 6:51 p.m. OK Python 3 TESTS 58 109 0 2100
75033112 kobae964 E April 1, 2020, 2:39 a.m. OK Rust TESTS 58 31 307200 2100

remove filters

Back to search problems