Codeforces Round 589 (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
1228 Codeforces Round 589 (Div. 2) FINISHED False 7200 162060899 Sept. 29, 2019, 1:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 11561 ) B Filling the Grid PROGRAMMING implementation math 1300

B"Suppose there is a h x w grid consisting of empty or full cells. Let's make some definitions: In other words, the i -th row starts exactly with r_i full cells. Similarly, the j -th column starts exactly with c_j full cells. You have values of r and c . Initially, all cells are empty. Find the number of ways to fill grid cells to satisfy values of r and c . Since the answer can be very large, find the answer modulo 1000000007 ,(10^{9} + 7) . In other words, find the remainder after division of the answer by 1000000007 ,(10^{9} + 7) . The first line contains two integers h and w ( 1 <= h, w <= 10^{3} ) -- the height and width of the grid. The second line contains h integers r_{1}, r_{2}, ldots, r_{h} ( 0 <= r_{i} <= w ) -- the values of r . The third line contains w integers c_{1}, c_{2}, ldots, c_{w} ( 0 <= c_{j} <= h ) -- the values of c . Print the answer modulo 1000000007 ,(10^{9} + 7) . In the first example, this is the other possible case. In the second example, it's impossible to make a grid to satisfy such r , c values. In the third example, make sure to print answer modulo (10^9 + 7) . "...

Tutorials

70162

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
61520969 vyabachyaka B Sept. 29, 2019, 7:41 p.m. OK Clang++17 Diagnostics TESTS 30 61 3993600 1300
66241305 quevangel B Dec. 3, 2019, 6:17 p.m. OK D TESTS 30 46 4198400 1300
68619268 ruban B Jan. 11, 2020, 6:47 p.m. OK Delphi TESTS 30 31 40960000 1300
61518498 pkm17 B Sept. 29, 2019, 6:27 p.m. OK FPC TESTS 30 31 1024000 1300
61559298 lanphuonglqd B Sept. 30, 2019, 3:02 p.m. OK FPC TESTS 30 31 3993600 1300
61498898 LaSWeeG B Sept. 29, 2019, 2:26 p.m. OK FPC TESTS 30 46 4198400 1300
61939431 keshav.maverick B Oct. 5, 2019, 7:08 p.m. OK GNU C11 TESTS 30 31 0 1300
61535015 TARIQ B Sept. 30, 2019, 5:51 a.m. OK GNU C11 TESTS 30 31 0 1300
66658872 yigezhe B Dec. 12, 2019, 2:48 a.m. OK GNU C11 TESTS 30 31 1024000 1300
68729799 Razvan2000f B Jan. 13, 2020, 7:28 p.m. OK GNU C11 TESTS 30 31 3993600 1300
68729523 Razvan2000f B Jan. 13, 2020, 7:20 p.m. OK GNU C11 TESTS 30 31 3993600 1300
63874401 AH666 B Oct. 30, 2019, 6:30 p.m. OK GNU C11 TESTS 30 31 3993600 1300
61908314 sagnik_r B Oct. 5, 2019, 10:16 a.m. OK GNU C11 TESTS 30 31 3993600 1300
61773468 platter B Oct. 3, 2019, 10:59 a.m. OK GNU C11 TESTS 30 31 3993600 1300
61567825 hbgn B Sept. 30, 2019, 5:38 p.m. OK GNU C11 TESTS 30 31 3993600 1300
61759894 platter B Oct. 3, 2019, 6:46 a.m. OK GNU C11 TESTS 30 31 3993600 1300
61502209 luojunlinDHU B Sept. 29, 2019, 2:41 p.m. OK GNU C++11 TESTS 30 30 0 1300
61761749 vjudge3 B Oct. 3, 2019, 7:20 a.m. OK GNU C++11 TESTS 30 30 0 1300
61528354 elnico B Sept. 30, 2019, 12:56 a.m. OK GNU C++11 TESTS 30 30 0 1300
61496115 dickings B Sept. 29, 2019, 2:15 p.m. OK GNU C++11 TESTS 30 30 102400 1300
61809041 luogu_bot5 B Oct. 4, 2019, 12:43 a.m. OK GNU C++11 TESTS 30 30 1843200 1300
61496353 HunterXD B Sept. 29, 2019, 2:16 p.m. OK GNU C++11 TESTS 30 30 2048000 1300
61498606 mucamaca B Sept. 29, 2019, 2:25 p.m. OK GNU C++11 TESTS 30 30 3891200 1300
61551218 drinknight B Sept. 30, 2019, 12:31 p.m. OK GNU C++11 TESTS 30 30 3993600 1300
61504267 Erreth_Akbe B Sept. 29, 2019, 2:50 p.m. OK GNU C++11 TESTS 30 30 3993600 1300
63075305 nyto B Oct. 21, 2019, 1:32 p.m. OK GNU C++11 TESTS 30 30 4096000 1300
61553825 tieulac305 B Sept. 30, 2019, 1:23 p.m. OK GNU C++14 TESTS 30 15 0 1300
61519224 Svapnil007 B Sept. 29, 2019, 6:46 p.m. OK GNU C++14 TESTS 30 15 0 1300
61514426 codingkshatriya B Sept. 29, 2019, 5:01 p.m. OK GNU C++14 TESTS 30 15 0 1300
61511572 mth1908 B Sept. 29, 2019, 4:10 p.m. OK GNU C++14 TESTS 30 15 0 1300
62163436 sahild B Oct. 8, 2019, 7:05 p.m. OK GNU C++14 TESTS 30 15 0 1300
61561986 tichnas B Sept. 30, 2019, 3:53 p.m. OK GNU C++14 TESTS 30 15 0 1300
61525451 BetoSCL B Sept. 29, 2019, 9:52 p.m. OK GNU C++14 TESTS 30 15 0 1300
61552364 ChocolatePotato B Sept. 30, 2019, 12:54 p.m. OK GNU C++14 TESTS 30 15 1024000 1300
61930301 puru98 B Oct. 5, 2019, 4:05 p.m. OK GNU C++14 TESTS 30 15 1024000 1300
63529803 akashpatel20 B Oct. 27, 2019, 6:23 a.m. OK GNU C++14 TESTS 30 15 3993600 1300
61549678 ABIR B Sept. 30, 2019, 11:58 a.m. OK GNU C++17 TESTS 30 15 0 1300
62552155 5120162122 B Oct. 14, 2019, 9:06 a.m. OK GNU C++17 TESTS 30 15 0 1300
63228225 dhrigasi B Oct. 23, 2019, 10:02 a.m. OK GNU C++17 TESTS 30 15 0 1300
61748399 Mohammad_Amin B Oct. 3, 2019, 1:54 a.m. OK GNU C++17 TESTS 30 15 0 1300
64748559 vjudge3 B Nov. 12, 2019, 2:25 p.m. OK GNU C++17 TESTS 30 15 102400 1300
61579493 YXk3YWdh B Oct. 1, 2019, 12:25 a.m. OK GNU C++17 TESTS 30 15 1024000 1300
61596489 luogu_bot4 B Oct. 1, 2019, 9:03 a.m. OK GNU C++17 TESTS 30 15 2048000 1300
61537005 PajamaModi B Sept. 30, 2019, 6:55 a.m. OK GNU C++17 TESTS 30 15 3993600 1300
61552943 pranavn10 B Sept. 30, 2019, 1:06 p.m. OK GNU C++17 TESTS 30 15 3993600 1300
61594300 goat10 B Oct. 1, 2019, 8:12 a.m. OK GNU C++17 TESTS 30 15 3993600 1300
62085599 sighduck B Oct. 8, 2019, 1:29 a.m. OK Go TESTS 30 31 4505600 1300
61867725 maguroguma B Oct. 4, 2019, 5:05 p.m. OK Go TESTS 30 46 5120000 1300
62686313 synapse B Oct. 16, 2019, 2:10 p.m. OK Go TESTS 30 46 6144000 1300
61497793 z20124528 B Sept. 29, 2019, 2:21 p.m. OK Go TESTS 30 61 3993600 1300
61735556 nolane B Oct. 2, 2019, 6:05 p.m. OK Haskell TESTS 30 78 102400 1300
67008698 zhanyi_xiaolu B Dec. 16, 2019, 9:01 a.m. OK Java 11 TESTS 30 218 6041600 1300
62583704 shaurya_singh B Oct. 14, 2019, 6:02 p.m. OK Java 8 TESTS 30 109 0 1300
62069055 cribabby B Oct. 7, 2019, 4:08 p.m. OK Java 8 TESTS 30 109 0 1300
61735898 serafimkoo B Oct. 2, 2019, 6:12 p.m. OK Java 8 TESTS 30 109 0 1300
61686101 ADI_MUNDI B Oct. 2, 2019, 3:52 a.m. OK Java 8 TESTS 30 109 0 1300
61593494 kocko B Oct. 1, 2019, 7:54 a.m. OK Java 8 TESTS 30 109 0 1300
61591590 sarthakmanna B Oct. 1, 2019, 7:13 a.m. OK Java 8 TESTS 30 109 0 1300
61570851 Anonymous B Sept. 30, 2019, 6:37 p.m. OK Java 8 TESTS 30 109 0 1300
61550416 procrastinate7 B Sept. 30, 2019, 12:15 p.m. OK Java 8 TESTS 30 109 0 1300
61550042 Vatsal53 B Sept. 30, 2019, 12:07 p.m. OK Java 8 TESTS 30 109 0 1300
61538121 PassedPawn B Sept. 30, 2019, 7:29 a.m. OK Java 8 TESTS 30 109 0 1300
61523947 Taybor B Sept. 29, 2019, 8:41 p.m. OK JavaScript TESTS 30 108 14950400 1300
61554574 SlavaG B Sept. 30, 2019, 1:37 p.m. OK Kotlin TESTS 30 155 512000 1300
62359487 redjohn B Oct. 11, 2019, 12:01 p.m. OK Kotlin TESTS 30 171 204800 1300
61530865 fredboy B Sept. 30, 2019, 3 a.m. OK Kotlin TESTS 30 171 204800 1300
61579480 huangwenlong B Oct. 1, 2019, 12:24 a.m. OK Kotlin TESTS 30 171 6246400 1300
61509244 Ahmadjon B Sept. 29, 2019, 3:43 p.m. OK Kotlin TESTS 30 171 8089600 1300
66192572 Andreeha B Dec. 2, 2019, 5:04 p.m. OK Kotlin TESTS 30 186 204800 1300
61501923 david_varela B Sept. 29, 2019, 2:40 p.m. OK Kotlin TESTS 30 187 204800 1300
61496578 Vesbat B Sept. 29, 2019, 2:17 p.m. OK Kotlin TESTS 30 202 204800 1300
61552253 Tan42 B Sept. 30, 2019, 12:52 p.m. OK Mono C# TESTS 30 62 102400 1300
64198405 og.kostya B Nov. 4, 2019, 10:37 a.m. OK Mono C# TESTS 30 62 1945600 1300
63430912 m1_k3 B Oct. 26, 2019, 9:06 a.m. OK Mono C# TESTS 30 62 3891200 1300
61533145 treasuryonly B Sept. 30, 2019, 4:44 a.m. OK Mono C# TESTS 30 62 4096000 1300
64748222 nastya1199 B Nov. 12, 2019, 2:17 p.m. OK Mono C# TESTS 30 62 4096000 1300
62249994 NEvOl B Oct. 10, 2019, 8:58 a.m. OK Mono C# TESTS 30 77 5632000 1300
61541312 nadilk B Sept. 30, 2019, 8:54 a.m. OK Mono C# TESTS 30 77 7577600 1300
61533376 hyzhangzhy B Sept. 30, 2019, 4:53 a.m. OK Mono C# TESTS 30 77 7680000 1300
61808136 Travonka B Oct. 3, 2019, 11:41 p.m. OK Mono C# TESTS 30 124 3993600 1300
67401428 vjudge3 B Dec. 22, 2019, 4:02 a.m. OK MS C++ TESTS 30 15 3993600 1300
67401635 vjudge4 B Dec. 22, 2019, 4:12 a.m. OK MS C++ TESTS 30 30 4096000 1300
61922409 vjudge4 B Oct. 5, 2019, 1:42 p.m. OK MS C++ TESTS 30 31 0 1300
62402408 vjudge3 B Oct. 12, 2019, 7:50 a.m. OK MS C++ TESTS 30 31 0 1300
62402507 vjudge5 B Oct. 12, 2019, 7:52 a.m. OK MS C++ TESTS 30 31 0 1300
62404074 vjudge2 B Oct. 12, 2019, 8:23 a.m. OK MS C++ TESTS 30 31 0 1300
62406561 vjudge4 B Oct. 12, 2019, 9:09 a.m. OK MS C++ TESTS 30 31 0 1300
65435997 vjudge5 B Nov. 20, 2019, 1:25 p.m. OK MS C++ TESTS 30 31 0 1300
65482489 vjudge3 B Nov. 21, 2019, 12:06 p.m. OK MS C++ TESTS 30 31 0 1300
65996561 vjudge4 B Nov. 29, 2019, 5:45 p.m. OK MS C++ TESTS 30 31 0 1300
61526785 pmitkov B Sept. 29, 2019, 11:24 p.m. OK MS C++ 2017 TESTS 30 30 4096000 1300
62449649 Panda_eat_meat B Oct. 13, 2019, 3:04 a.m. OK MS C++ 2017 TESTS 30 31 0 1300
62401958 vjudge4 B Oct. 12, 2019, 7:40 a.m. OK MS C++ 2017 TESTS 30 31 0 1300
62280621 just_friendly_neighbor B Oct. 10, 2019, 12:57 p.m. OK MS C++ 2017 TESTS 30 31 0 1300
61718935 mckm2000 B Oct. 2, 2019, 1:18 p.m. OK MS C++ 2017 TESTS 30 31 0 1300
61526444 cebrf B Sept. 29, 2019, 10:57 p.m. OK MS C++ 2017 TESTS 30 31 0 1300
61497076 creeper_ustc B Sept. 29, 2019, 2:19 p.m. OK MS C++ 2017 TESTS 30 31 0 1300
61849315 vjudge3 B Oct. 4, 2019, 12:16 p.m. OK MS C++ 2017 TESTS 30 31 204800 1300
63652595 Mad112233 B Oct. 28, 2019, 11:50 a.m. OK MS C++ 2017 TESTS 30 31 307200 1300
61539315 omerb.zeybek B Sept. 30, 2019, 8:03 a.m. OK MS C++ 2017 TESTS 30 31 512000 1300
61525755 rsFalse B Sept. 29, 2019, 10:10 p.m. OK Perl TESTS 30 717 3072000 1300
61562214 YouKnowNothing_JonSnow B Sept. 30, 2019, 3:58 p.m. OK PyPy 2 TESTS 30 140 5427200 1300
61562302 YouKnowNothing_JonSnow B Sept. 30, 2019, 3:59 p.m. OK PyPy 2 TESTS 30 155 5222400 1300
61579389 yumtam B Oct. 1, 2019, 12:18 a.m. OK PyPy 2 TESTS 30 187 5120000 1300
61527073 frostD B Sept. 29, 2019, 11:46 p.m. OK PyPy 2 TESTS 30 295 19046400 1300
61505513 yougaindra B Sept. 29, 2019, 2:56 p.m. OK PyPy 2 TESTS 30 873 144588800 1300
61887205 RingerDinger B Oct. 5, 2019, 4:09 a.m. OK PyPy 3 TESTS 30 140 1945600 1300
61536267 pranavgupta353 B Sept. 30, 2019, 6:32 a.m. OK PyPy 3 TESTS 30 140 1945600 1300
61513102 codershuvo B Sept. 29, 2019, 4:36 p.m. OK PyPy 3 TESTS 30 140 2048000 1300
63241426 vjudge3 B Oct. 23, 2019, 1:33 p.m. OK PyPy 3 TESTS 30 155 1945600 1300
63241256 Gabs96 B Oct. 23, 2019, 1:31 p.m. OK PyPy 3 TESTS 30 155 1945600 1300
61571257 Symmetry09 B Sept. 30, 2019, 6:45 p.m. OK PyPy 3 TESTS 30 155 2048000 1300
61557763 debadree25 B Sept. 30, 2019, 2:34 p.m. OK PyPy 3 TESTS 30 155 2048000 1300
61539561 Borschik B Sept. 30, 2019, 8:10 a.m. OK PyPy 3 TESTS 30 155 6246400 1300
67636398 mstr_shifu B Dec. 26, 2019, 7:11 a.m. OK PyPy 3 TESTS 30 155 6656000 1300
69267249 phlk B Jan. 21, 2020, 7:06 p.m. OK PyPy 3 TESTS 30 155 6758400 1300
61767719 me.ankit21 B Oct. 3, 2019, 9:09 a.m. OK Python 2 TESTS 30 265 5427200 1300
61525915 muhitsarwar B Sept. 29, 2019, 10:21 p.m. OK Python 2 TESTS 30 311 4403200 1300
62649065 ulisesabraham B Oct. 15, 2019, 8:43 p.m. OK Python 2 TESTS 30 342 1536000 1300
64671364 aaa_bbb_ccc B Nov. 11, 2019, 6:06 a.m. OK Python 2 TESTS 30 421 4505600 1300
68592876 mahmednabil109 B Jan. 11, 2020, 1:11 p.m. OK Python 3 TESTS 30 187 307200 1300
61527019 pramitt B Sept. 29, 2019, 11:43 p.m. OK Python 3 TESTS 30 233 5222400 1300
66566912 erickjohnross B Dec. 9, 2019, 11:25 p.m. OK Python 3 TESTS 30 234 4403200 1300
61569705 tkhabia2303 B Sept. 30, 2019, 6:14 p.m. OK Python 3 TESTS 30 234 5120000 1300
61546161 trifiasco B Sept. 30, 2019, 10:30 a.m. OK Python 3 TESTS 30 280 5324800 1300
62650291 Almaz_man B Oct. 15, 2019, 9:19 p.m. OK Python 3 TESTS 30 295 4915200 1300
61503352 breno B Sept. 29, 2019, 2:46 p.m. OK Python 3 TESTS 30 296 409600 1300
61572912 bergus B Sept. 30, 2019, 7:21 p.m. OK Python 3 TESTS 30 296 4505600 1300
61512536 eugalt B Sept. 29, 2019, 4:26 p.m. OK Python 3 TESTS 30 311 0 1300
66975269 sruthi_1729 B Dec. 15, 2019, 2:28 p.m. OK Python 3 TESTS 30 311 307200 1300
61576423 f67 B Sept. 30, 2019, 9:09 p.m. OK Ruby TESTS 30 155 4915200 1300
61552780 Dawer B Sept. 30, 2019, 1:02 p.m. OK Rust TESTS 30 31 0 1300
61943692 bor.is B Oct. 5, 2019, 9:22 p.m. OK Rust TESTS 30 31 1024000 1300

remove filters

Back to search problems