Codeforces Round 574 (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
1195 Codeforces Round 574 (Div. 2) FINISHED False 7200 174065087 July 17, 2019, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3210 ) E OpenStreetMap PROGRAMMING data structures two pointers 2100

B"Seryozha conducts a course dedicated to building a map of heights of Stepanovo recreation center. He laid a rectangle grid of size n x m cells on a map (rows of grid are numbered from 1 to n from north to south, and columns are numbered from 1 to m from west to east). After that he measured the average height of each cell above Rybinsk sea level and obtained a matrix of heights of size n x m . The cell (i, j) lies on the intersection of the i -th row and the j -th column and has height h_{i, j} . Seryozha is going to look at the result of his work in the browser. The screen of Seryozha's laptop can fit a subrectangle of size a x b of matrix of heights ( 1 <= a <= n , 1 <= b <= m ). Seryozha tries to decide how the weather can affect the recreation center -- for example, if it rains, where all the rainwater will gather. To do so, he is going to find the cell having minimum height among all cells that are shown on the screen of his laptop. Help Seryozha to calculate the sum of heights of such cells for all possible subrectangles he can see on his screen. In other words, you have to calculate the sum of minimum heights in submatrices of size a x b with top left corners in (i, j) over all 1 <= i <= n - a + 1 and 1 <= j <= m - b + 1 . Consider the sequence g_i = (g_{i - 1} cdot x + y) bmod z . You are given integers g_0 , x , y and z . By miraculous coincidence, h_{i, j} = g_{(i - 1) cdot m + j - 1} ( (i - 1) cdot m + j - 1 is the index). The first line of the input contains four integers n , m , a and b ( 1 <= n, m <= 3 ,000 , 1 <= a <= n , 1 <= b <= m ) -- the number of rows and columns in the matrix Seryozha has, and the number of rows and columns that can be shown on the screen of the laptop, respectively. The second line of the input contains four inte"...

Tutorials

Разбор Codeforces Round #574 (Div. 2)

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
57275122 jschr E July 18, 2019, 10:32 a.m. OK GNU C11 TESTS 32 296 72192000 2100
57259443 lbjlc E July 18, 2019, 4:15 a.m. OK GNU C++11 TESTS 29 249 36352000 2100
57339400 ShafinKhadem E July 19, 2019, 5:43 p.m. OK GNU C++11 TESTS 32 249 72396800 2100
57241464 MxyKonnyaku E July 17, 2019, 5:44 p.m. OK GNU C++11 TESTS 29 280 36044800 2100
57324444 MxyKonnyaku E July 19, 2019, 11:29 a.m. OK GNU C++11 TESTS 32 295 36044800 2100
57240611 RDJ.Widow E July 17, 2019, 5:34 p.m. OK GNU C++11 TESTS 29 312 36352000 2100
57362883 ArgentDawn E July 20, 2019, 8:18 a.m. OK GNU C++11 TESTS 33 312 112742400 2100
57253166 chenxiaoyan E July 18, 2019, 1:02 a.m. OK GNU C++11 TESTS 29 327 72192000 2100
57241786 gmh77 E July 17, 2019, 5:49 p.m. OK GNU C++11 TESTS 29 327 72192000 2100
57264319 chenxiaoyan E July 18, 2019, 6:34 a.m. OK GNU C++11 TESTS 29 327 72192000 2100
58212228 zx2003 E Aug. 3, 2019, 9:14 a.m. OK GNU C++11 TESTS 33 327 72396800 2100
57262476 HanZhongBalls E July 18, 2019, 5:52 a.m. OK GNU C++14 TESTS 29 249 36249600 2100
57262231 HanZhongBalls E July 18, 2019, 5:46 a.m. OK GNU C++14 TESTS 29 296 108646400 2100
57280483 MrDecomposition E July 18, 2019, 12:34 p.m. OK GNU C++14 TESTS 32 311 52326400 2100
57240422 ccsu_cat_love_jiejie E July 17, 2019, 5:33 p.m. OK GNU C++14 TESTS 29 311 72294400 2100
57259634 NDKhoa E July 18, 2019, 4:23 a.m. OK GNU C++14 TESTS 29 311 72294400 2100
58791293 Scut82 E Aug. 14, 2019, 2:32 a.m. OK GNU C++14 TESTS 33 311 73728000 2100
57560856 Lich_Ning E July 23, 2019, 12:28 a.m. OK GNU C++14 TESTS 33 327 36249600 2100
57283145 DeadPillow E July 18, 2019, 1:31 p.m. OK GNU C++14 TESTS 32 327 36249600 2100
58297471 ghanta88 E Aug. 4, 2019, 6:03 p.m. OK GNU C++14 TESTS 33 327 72294400 2100
57721360 ccsu_cat_love_jiejie E July 25, 2019, 5:31 a.m. OK GNU C++14 TESTS 33 327 72294400 2100
57320526 Felerius E July 19, 2019, 9:49 a.m. OK GNU C++17 TESTS 32 264 36249600 2100
58264688 pyBlob E Aug. 4, 2019, 1:58 p.m. OK GNU C++17 TESTS 33 265 37785600 2100
57241562 aytal.d E July 17, 2019, 5:46 p.m. OK GNU C++17 TESTS 29 265 37785600 2100
57241393 MxyTempura E July 17, 2019, 5:43 p.m. OK GNU C++17 TESTS 29 280 36044800 2100
69588275 StarCuriosity E Jan. 26, 2020, 8:53 p.m. OK GNU C++17 TESTS 33 296 36249600 2100
69588196 StarCuriosity E Jan. 26, 2020, 8:49 p.m. OK GNU C++17 TESTS 33 296 36249600 2100
57283416 andrew E July 18, 2019, 1:37 p.m. OK GNU C++17 TESTS 32 296 90726400 2100
58469938 igba E Aug. 8, 2019, 10:46 p.m. OK GNU C++17 TESTS 33 311 73728000 2100
58469962 igba E Aug. 8, 2019, 10:48 p.m. OK GNU C++17 TESTS 33 311 73728000 2100
57235356 kkbb E July 17, 2019, 4:20 p.m. OK GNU C++17 TESTS 29 311 108236800 2100
58338371 WangJialei E Aug. 5, 2019, 12:20 p.m. OK Go TESTS 33 1294 76595200 2100
58338507 vjudge3 E Aug. 5, 2019, 12:23 p.m. OK Go TESTS 33 1326 76595200 2100
57234437 Dukkha E July 17, 2019, 4:16 p.m. OK Java 8 TESTS 29 607 73523200 2100
57248485 Musin E July 17, 2019, 8:49 p.m. OK Java 8 TESTS 29 686 38502400 2100
57630991 CrazyFlower E July 24, 2019, 8:44 a.m. OK Java 8 TESTS 33 701 77516800 2100
58880210 icpc_loser E Aug. 15, 2019, 8:25 p.m. OK Java 8 TESTS 33 732 142540800 2100
57235472 AkshajK E July 17, 2019, 4:21 p.m. OK Java 8 TESTS 29 857 137932800 2100
57467272 AnandOza E July 21, 2019, 4:08 p.m. OK Java 8 TESTS 33 889 38502400 2100
57312175 brainfxxk E July 19, 2019, 6:54 a.m. OK Java 8 TESTS 32 936 57139200 2100
57914834 SpargelTarzan E July 29, 2019, 12:15 a.m. OK Java 8 TESTS 33 966 77107200 2100
57255032 shaurya024 E July 18, 2019, 2:03 a.m. OK Java 8 TESTS 29 966 83251200 2100
58962205 PaoloP E Aug. 17, 2019, 3:50 p.m. OK Java 8 TESTS 33 982 129433600 2100
60056934 Spheniscine E Sept. 5, 2019, 4:50 a.m. OK Kotlin TESTS 33 841 37785600 2100
60054757 Spheniscine E Sept. 5, 2019, 3:20 a.m. OK Kotlin TESTS 33 841 38195200 2100
60054898 Spheniscine E Sept. 5, 2019, 3:25 a.m. OK Kotlin TESTS 33 857 37888000 2100
57268902 drd93 E July 18, 2019, 8:12 a.m. OK Kotlin TESTS 29 1450 40243200 2100
57249853 Tlatoani E July 17, 2019, 9:51 p.m. OK Kotlin TESTS 29 1622 260608000 2100
57344445 Narut E July 19, 2019, 9:19 p.m. OK Mono C# TESTS 33 1185 80691200 2100
57339030 omikad E July 19, 2019, 5:33 p.m. OK Mono C# TESTS 32 1278 78540800 2100
57830534 qcwlmqy E July 27, 2019, 5:51 a.m. OK MS C++ TESTS 33 421 72396800 2100
57830592 vjudge3 E July 27, 2019, 5:52 a.m. OK MS C++ TESTS 33 436 72396800 2100
59260383 vjudge4 E Aug. 22, 2019, 8:21 a.m. OK MS C++ TESTS 33 482 156774400 2100
65256596 vjudge3 E Nov. 17, 2019, 1:37 p.m. OK MS C++ TESTS 33 499 145305600 2100
57237283 BaturaDima E July 17, 2019, 4:29 p.m. OK MS C++ TESTS 29 545 108236800 2100
59088758 vjudge5 E Aug. 19, 2019, 12:01 p.m. OK MS C++ TESTS 33 545 217190400 2100
58411952 vjudge5 E Aug. 7, 2019, 2:13 a.m. OK MS C++ TESTS 33 545 224665600 2100
65332428 vjudge2 E Nov. 19, 2019, 7:03 a.m. OK MS C++ TESTS 33 623 72294400 2100
59090150 vjudge2 E Aug. 19, 2019, 12:30 p.m. OK MS C++ TESTS 33 919 1843200 2100
59084104 vjudge1 E Aug. 19, 2019, 10:24 a.m. OK MS C++ TESTS 33 966 108339200 2100
57241695 aytal.d E July 17, 2019, 5:48 p.m. OK MS C++ 2017 TESTS 29 358 37888000 2100
57351301 tang0404 E July 20, 2019, 3:44 a.m. OK MS C++ 2017 TESTS 33 483 144793600 2100
58323746 vjudge3 E Aug. 5, 2019, 6:57 a.m. OK MS C++ 2017 TESTS 33 654 72499200 2100
57475430 xsc E July 21, 2019, 9:07 p.m. OK MS C++ 2017 TESTS 33 670 72499200 2100
57278618 youx E July 18, 2019, 11:53 a.m. OK MS C++ 2017 TESTS 32 701 174592000 2100
57244872 Skeef79 E July 17, 2019, 6:55 p.m. OK MS C++ 2017 TESTS 29 732 144384000 2100
57757259 GomBu E July 25, 2019, 4:42 p.m. OK MS C++ 2017 TESTS 33 763 72499200 2100
57245034 Skeef79 E July 17, 2019, 6:59 p.m. OK MS C++ 2017 TESTS 29 794 144691200 2100
57465344 Timonnable E July 21, 2019, 3:20 p.m. OK MS C++ 2017 TESTS 33 794 144793600 2100
58535038 egneeS E Aug. 10, 2019, 11:28 a.m. OK MS C++ 2017 TESTS 33 795 111411200 2100
57247139 kabeer27 E July 17, 2019, 8:01 p.m. OK PyPy 2 TESTS 29 1434 112742400 2100
57244894 pajenegod E July 17, 2019, 6:55 p.m. OK PyPy 2 TESTS 29 1434 112742400 2100
57417242 Helli.code E July 20, 2019, 5:45 p.m. OK PyPy 2 TESTS 33 1450 112844800 2100
57243976 pajenegod E July 17, 2019, 6:32 p.m. OK PyPy 2 TESTS 29 1684 112435200 2100
57244231 c1729 E July 17, 2019, 6:38 p.m. OK PyPy 2 TESTS 29 1716 119193600 2100
59116742 yumtam E Aug. 20, 2019, 2:12 a.m. OK PyPy 2 TESTS 33 1825 130662400 2100
57243879 c1729 E July 17, 2019, 6:30 p.m. OK PyPy 2 TESTS 29 1856 118784000 2100
57243701 c1729 E July 17, 2019, 6:25 p.m. OK PyPy 2 TESTS 29 1871 191385600 2100
57243557 c1729 E July 17, 2019, 6:22 p.m. OK PyPy 2 TESTS 29 1902 190566400 2100
57341081 tanon710 E July 19, 2019, 6:32 p.m. OK PyPy 3 TESTS 32 171 5222400 2100
65273380 sansen E Nov. 17, 2019, 9:31 p.m. OK Rust TESTS 33 607 72396800 2100
57235894 tuna_salad E July 17, 2019, 4:23 p.m. OK Rust TESTS 29 685 216678400 2100
57288396 arzk E July 18, 2019, 3:33 p.m. OK Rust TESTS 32 701 144281600 2100
57288221 arzk E July 18, 2019, 3:29 p.m. OK Rust TESTS 32 748 144179200 2100
57284734 arzk E July 18, 2019, 2:08 p.m. OK Rust TESTS 32 748 171520000 2100
57289599 arzk E July 18, 2019, 4:04 p.m. OK Rust TESTS 32 763 144281600 2100
57340891 kobae964 E July 19, 2019, 6:26 p.m. OK Rust TESTS 32 857 217190400 2100

remove filters

Back to search problems