Codeforces Round 598 (Div. 3)

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
1256 Codeforces Round 598 (Div. 3) FINISHED False 7200 158949899 Nov. 4, 2019, 1:15 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 6932 ) C Platforms Jumping PROGRAMMING greedy 1700

B"There is a river of width n . The left bank of the river is cell 0 and the right bank is cell n + 1 (more formally, the river can be represented as a sequence of n + 2 cells numbered from 0 to n + 1 ). There are also m wooden platforms on a river, the i -th platform has length c_i (so the i -th platform takes c_i consecutive cells of the river). It is guaranteed that the sum of lengths of platforms does not exceed n . You are standing at 0 and want to reach n+1 somehow. If you are standing at the position x , you can jump to any position in the range [x + 1; x + d] . However you don't really like the water so you can jump only to such cells that belong to some wooden platform. For example, if d=1 , you can jump only to the next position (if it belongs to the wooden platform). You can assume that cells 0 and n+1 belong to wooden platforms. You want to know if it is possible to reach n+1 from 0 if you can move any platform to the left or to the right arbitrary number of times (possibly, zero) as long as they do not intersect each other (but two platforms can touch each other). It also means that you cannot change the relative order of platforms. Note that you should move platforms until you start jumping (in other words, you first move the platforms and then start jumping). For example, if n=7 , m=3 , d=2 and c = [1, 2, 1] , then one of the ways to reach 8 from 0 is follow: The first line of the input contains three integers n , m and d ( 1 <= n, m, d <= 1000, m <= n ) -- the width of the river, the number of platforms and the maximum distance of your jump, correspondingly. The second line of the input contains m integers c_1, c_2, ... , c_m ( 1 <= c_i <= n, sum limits_{i=1}^{m} c_i <= n ), where c_i is the length of the i -th platform. If it is impossib"...

Tutorials

Codeforces Round #598 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
64423886 Ghozlan C Nov. 6, 2019, 6:33 p.m. OK Clang++17 Diagnostics TESTS 56 46 204800 1700
64702890 gdoritos C Nov. 11, 2019, 3:26 p.m. OK Clang++17 Diagnostics TESTS 56 46 8396800 1700
65928299 rahul5720 C Nov. 28, 2019, 7:27 p.m. OK Clang++17 Diagnostics TESTS 56 61 2150400 1700
64370104 LeVanThuc C Nov. 6, 2019, 2:04 p.m. OK FPC TESTS 56 31 1843200 1700
65805410 ghosthunterk C Nov. 27, 2019, 8:41 a.m. OK FPC TESTS 56 46 7987200 1700
65296656 hpl C Nov. 18, 2019, 11:46 a.m. OK GNU C11 TESTS 56 30 0 1700
65296339 hpl C Nov. 18, 2019, 11:39 a.m. OK GNU C11 TESTS 56 31 0 1700
65296405 hpl C Nov. 18, 2019, 11:40 a.m. OK GNU C11 TESTS 56 31 0 1700
65296464 hpl C Nov. 18, 2019, 11:42 a.m. OK GNU C11 TESTS 56 31 0 1700
65931875 keshav.maverick C Nov. 28, 2019, 9:36 p.m. OK GNU C11 TESTS 56 31 0 1700
66621943 shubh101220001 C Dec. 11, 2019, 7:20 a.m. OK GNU C11 TESTS 56 31 0 1700
66652850 haitrinh C Dec. 11, 2019, 8:09 p.m. OK GNU C11 TESTS 56 31 0 1700
65253066 kaname_madoka123 C Nov. 17, 2019, 12:36 p.m. OK GNU C11 TESTS 56 31 0 1700
65295911 hpl C Nov. 18, 2019, 11:28 a.m. OK GNU C11 TESTS 56 31 0 1700
65296102 hpl C Nov. 18, 2019, 11:33 a.m. OK GNU C11 TESTS 56 31 0 1700
65139452 mlge C Nov. 16, 2019, 6:01 a.m. OK GNU C++11 TESTS 56 30 0 1700
66621586 GeoCalibur C Dec. 11, 2019, 7:11 a.m. OK GNU C++11 TESTS 56 30 0 1700
69845061 msgtoshubham C Jan. 30, 2020, 2:08 p.m. OK GNU C++11 TESTS 56 31 0 1700
69903691 _-Noob-_ C Jan. 31, 2020, 1:38 p.m. OK GNU C++11 TESTS 56 31 0 1700
69919457 lcs147 C Jan. 31, 2020, 5:56 p.m. OK GNU C++11 TESTS 56 31 0 1700
69274608 cornivores C Jan. 22, 2020, 12:48 a.m. OK GNU C++11 TESTS 56 31 0 1700
69229434 airbust C Jan. 21, 2020, 8:51 a.m. OK GNU C++11 TESTS 56 31 0 1700
69554475 xxqiam C Jan. 26, 2020, 8:08 a.m. OK GNU C++11 TESTS 56 31 0 1700
69019286 vjudge5 C Jan. 18, 2020, 6:05 a.m. OK GNU C++11 TESTS 56 31 0 1700
69705606 MYSNKS C Jan. 29, 2020, 4:22 a.m. OK GNU C++11 TESTS 56 31 0 1700
64327955 risu007 C Nov. 5, 2019, 6:05 p.m. OK GNU C++14 TESTS 56 15 0 1700
67315028 I_Love_Trott C Dec. 21, 2019, 5:32 a.m. OK GNU C++14 TESTS 56 15 0 1700
66558702 archanapriya C Dec. 9, 2019, 5:55 p.m. OK GNU C++14 TESTS 56 15 0 1700
66479897 deogu C Dec. 8, 2019, 1:03 a.m. OK GNU C++14 TESTS 56 15 0 1700
66302245 NourElRashidy C Dec. 5, 2019, 7:46 a.m. OK GNU C++14 TESTS 56 15 0 1700
64495226 SHQAIR C Nov. 7, 2019, 11 p.m. OK GNU C++14 TESTS 56 15 0 1700
64345474 Mr_Mafia C Nov. 6, 2019, 6:02 a.m. OK GNU C++14 TESTS 56 15 0 1700
67460219 explorer_958 C Dec. 23, 2019, 8:51 a.m. OK GNU C++14 TESTS 56 15 307200 1700
64312810 ZJM782473006 C Nov. 5, 2019, 1:14 p.m. OK GNU C++14 TESTS 56 15 8806400 1700
69715118 sunyuhan1998 C Jan. 29, 2020, 8:43 a.m. OK GNU C++14 TESTS 56 30 0 1700
69084157 vjudge1 C Jan. 19, 2020, 7:39 a.m. OK GNU C++17 TESTS 56 15 0 1700
69049770 ZhuZiyi C Jan. 18, 2020, 12:17 p.m. OK GNU C++17 TESTS 56 15 0 1700
64316049 Geothermal C Nov. 5, 2019, 2:09 p.m. OK GNU C++17 TESTS 56 15 0 1700
65927659 JaroPaska C Nov. 28, 2019, 7:08 p.m. OK GNU C++17 TESTS 56 15 0 1700
68822659 dhiraj_7_ C Jan. 14, 2020, 5:59 p.m. OK GNU C++17 TESTS 56 15 0 1700
65402973 WXY777 C Nov. 20, 2019, 12:32 a.m. OK GNU C++17 TESTS 56 15 16076800 1700
69286174 Fireball0424 C Jan. 22, 2020, 8:17 a.m. OK GNU C++17 TESTS 56 30 0 1700
67624605 raymondyuewang C Dec. 25, 2019, 8:44 p.m. OK GNU C++17 TESTS 56 30 0 1700
67489374 Patelsoham78 C Dec. 23, 2019, 6:45 p.m. OK GNU C++17 TESTS 56 30 0 1700
69288827 shaurya_singh C Jan. 22, 2020, 9:21 a.m. OK GNU C++17 TESTS 56 30 0 1700
66882828 sighduck C Dec. 14, 2019, 5:09 p.m. OK Go TESTS 56 31 0 1700
64517052 stefan.sakalik C Nov. 8, 2019, 11:06 a.m. OK Go TESTS 56 31 0 1700
64349220 MiohitoKiri5474 C Nov. 6, 2019, 7:38 a.m. OK Go TESTS 56 46 0 1700
64649546 JustAndreyka C Nov. 10, 2019, 4:31 p.m. OK Java 11 TESTS 56 171 0 1700
68043497 MaxHeap C Jan. 1, 2020, 3:23 p.m. OK Java 11 TESTS 56 186 0 1700
67971132 machhra C Dec. 30, 2019, 3:03 p.m. OK Java 11 TESTS 56 187 0 1700
66655215 TheSawan C Dec. 11, 2019, 9:55 p.m. OK Java 11 TESTS 56 187 0 1700
65400691 davisrollman C Nov. 19, 2019, 9:51 p.m. OK Java 11 TESTS 56 187 0 1700
67773608 kukreja-vlk C Dec. 28, 2019, 7:59 a.m. OK Java 11 TESTS 56 202 0 1700
64515463 xwhalex C Nov. 8, 2019, 10:33 a.m. OK Java 11 TESTS 56 202 0 1700
65148919 mansisampat2 C Nov. 16, 2019, 6:43 a.m. OK Java 11 TESTS 56 233 0 1700
64708989 dudo48 C Nov. 11, 2019, 5:47 p.m. OK Java 11 TESTS 56 234 0 1700
64330746 golions C Nov. 5, 2019, 7:12 p.m. OK Java 8 TESTS 56 109 0 1700
66633688 O_E C Dec. 11, 2019, 12:07 p.m. OK Java 8 TESTS 56 109 0 1700
65337434 kocko C Nov. 19, 2019, 9:28 a.m. OK Java 8 TESTS 56 109 0 1700
64787021 YazanAssaf C Nov. 13, 2019, 9:32 a.m. OK Java 8 TESTS 56 109 0 1700
64527000 nadaabdo588 C Nov. 8, 2019, 2:06 p.m. OK Java 8 TESTS 56 109 0 1700
64444042 bluesky111 C Nov. 7, 2019, 5:47 a.m. OK Java 8 TESTS 56 109 0 1700
64331513 Oopsimbad C Nov. 5, 2019, 7:33 p.m. OK Java 8 TESTS 56 109 0 1700
64325048 yaoct C Nov. 5, 2019, 4:59 p.m. OK Java 8 TESTS 56 109 0 1700
68041800 Azuz C Jan. 1, 2020, 2:40 p.m. OK Java 8 TESTS 56 124 0 1700
69272592 Sharon C Jan. 21, 2020, 10:31 p.m. OK Java 8 TESTS 56 124 0 1700
65208496 sashamc C Nov. 16, 2019, 4:52 p.m. OK Kotlin TESTS 56 156 204800 1700
64887435 Black_Fregat C Nov. 14, 2019, 1:34 p.m. OK Kotlin TESTS 56 171 102400 1700
66046508 Bringoff C Nov. 30, 2019, 3:19 p.m. OK Kotlin TESTS 56 202 1228800 1700
64770639 Nonos C Nov. 12, 2019, 11:09 p.m. OK Mono C# TESTS 56 62 102400 1700
64887165 hloya C Nov. 14, 2019, 1:29 p.m. OK Mono C# TESTS 56 62 3686400 1700
65034670 Dimon2305 C Nov. 15, 2019, 11:13 a.m. OK Mono C# TESTS 56 77 3686400 1700
64671166 nadilk C Nov. 11, 2019, 5:59 a.m. OK Mono C# TESTS 56 77 3686400 1700
64665748 vjudge5 C Nov. 11, 2019, 1:59 a.m. OK MS C++ TESTS 56 30 0 1700
65802448 vjudge5 C Nov. 27, 2019, 8:06 a.m. OK MS C++ TESTS 56 31 0 1700
69475596 tarattata1 C Jan. 24, 2020, 4:04 p.m. OK MS C++ TESTS 56 31 0 1700
69662036 vjudge3 C Jan. 28, 2020, 9:49 a.m. OK MS C++ TESTS 56 31 0 1700
69885138 vjudge5 C Jan. 31, 2020, 7:55 a.m. OK MS C++ TESTS 56 31 0 1700
65820515 vjudge2 C Nov. 27, 2019, 10:16 a.m. OK MS C++ TESTS 56 31 0 1700
65906860 vjudge1 C Nov. 28, 2019, 11:19 a.m. OK MS C++ TESTS 56 31 0 1700
65820518 vjudge4 C Nov. 27, 2019, 10:16 a.m. OK MS C++ TESTS 56 31 0 1700
66643445 vjudge1 C Dec. 11, 2019, 3:41 p.m. OK MS C++ TESTS 56 31 0 1700
65805178 vjudge5 C Nov. 27, 2019, 8:35 a.m. OK MS C++ TESTS 56 31 0 1700
67954271 vjudge4 C Dec. 30, 2019, 8:59 a.m. OK MS C++ 2017 TESTS 56 31 0 1700
69772829 vjudge1 C Jan. 29, 2020, 4:08 p.m. OK MS C++ 2017 TESTS 56 31 0 1700
66830767 tomwang C Dec. 14, 2019, 10:07 a.m. OK MS C++ 2017 TESTS 56 31 0 1700
66593853 scorpiowf C Dec. 10, 2019, 1:56 p.m. OK MS C++ 2017 TESTS 56 31 0 1700
66498462 YaMi506 C Dec. 8, 2019, 11:31 a.m. OK MS C++ 2017 TESTS 56 31 0 1700
65955434 iloveori C Nov. 29, 2019, 12:37 p.m. OK MS C++ 2017 TESTS 56 31 0 1700
65691065 Traveller_ C Nov. 25, 2019, 4:54 a.m. OK MS C++ 2017 TESTS 56 31 0 1700
65586477 vjudge4 C Nov. 23, 2019, 12:38 p.m. OK MS C++ 2017 TESTS 56 31 0 1700
65586378 Guoman C Nov. 23, 2019, 12:36 p.m. OK MS C++ 2017 TESTS 56 31 0 1700
65572189 vjudge4 C Nov. 23, 2019, 8:13 a.m. OK MS C++ 2017 TESTS 56 31 0 1700
64723322 shivam1420 C Nov. 12, 2019, 5:19 a.m. OK Node.js TESTS 56 171 409600 1700
64716462 Benkas C Nov. 11, 2019, 10:32 p.m. OK Ocaml TESTS 56 30 1228800 1700
64566749 sasha.kudasov04 C Nov. 9, 2019, 7:55 a.m. OK PascalABC.NET TESTS 56 343 204800 1700
64893428 mayakin C Nov. 14, 2019, 3:35 p.m. OK PHP TESTS 56 62 0 1700
64867656 yumtam C Nov. 14, 2019, 6:57 a.m. OK PyPy 2 TESTS 56 155 102400 1700
64323978 Vladislav_Z C Nov. 5, 2019, 4:37 p.m. OK PyPy 3 TESTS 56 139 1843200 1700
64489735 O_Ramanujan C Nov. 7, 2019, 7:21 p.m. OK PyPy 3 TESTS 56 140 0 1700
64439328 timothyhorsc C Nov. 7, 2019, 3:20 a.m. OK PyPy 3 TESTS 56 140 0 1700
66376268 tycyd C Dec. 6, 2019, 2:57 a.m. OK PyPy 3 TESTS 56 140 1331200 1700
66376064 tycyd C Dec. 6, 2019, 2:48 a.m. OK PyPy 3 TESTS 56 140 1331200 1700
65677591 transfusion C Nov. 24, 2019, 6:17 p.m. OK PyPy 3 TESTS 56 140 1331200 1700
64347486 ruslanedu C Nov. 6, 2019, 7 a.m. OK PyPy 3 TESTS 56 140 1331200 1700
64501055 singhpriyank C Nov. 8, 2019, 4:13 a.m. OK PyPy 3 TESTS 56 140 1740800 1700
66462925 bnaninaidu9949 C Dec. 7, 2019, 3:28 p.m. OK PyPy 3 TESTS 56 140 1843200 1700
65045676 Evil__Coder C Nov. 15, 2019, 1:53 p.m. OK PyPy 3 TESTS 56 140 1843200 1700
66303865 neuhq_haha C Dec. 5, 2019, 8:30 a.m. OK Python 2 TESTS 56 187 0 1700
66631146 drogon_nest C Dec. 11, 2019, 11:13 a.m. OK Python 3 TESTS 56 109 409600 1700
66616612 PEPElotas C Dec. 11, 2019, 4:28 a.m. OK Python 3 TESTS 56 109 409600 1700
65501423 Vaapler C Nov. 21, 2019, 7:08 p.m. OK Python 3 TESTS 56 109 409600 1700
65321950 IonicStrenth C Nov. 18, 2019, 8:25 p.m. OK Python 3 TESTS 56 109 409600 1700
65251845 sayalhajare1911 C Nov. 17, 2019, 12:15 p.m. OK Python 3 TESTS 56 109 409600 1700
64858357 youdit C Nov. 14, 2019, 1:14 a.m. OK Python 3 TESTS 56 109 409600 1700
64681905 integer15 C Nov. 11, 2019, 10:23 a.m. OK Python 3 TESTS 56 109 409600 1700
64323916 motoras C Nov. 5, 2019, 4:36 p.m. OK Python 3 TESTS 56 109 409600 1700
64315587 komolakanto C Nov. 5, 2019, 2:01 p.m. OK Python 3 TESTS 56 109 409600 1700
68361264 mike.shvets C Jan. 7, 2020, 2:11 p.m. OK Python 3 TESTS 56 109 512000 1700
68718419 BalabanovoGrief C Jan. 13, 2020, 3:19 p.m. OK Rust TESTS 56 31 0 1700
64784123 maxglushkov561 C Nov. 13, 2019, 8:28 a.m. OK Rust TESTS 56 31 0 1700
64664305 ten- C Nov. 11, 2019, 12:16 a.m. OK Rust TESTS 56 31 102400 1700
65315017 ikazuya0201 C Nov. 18, 2019, 4:55 p.m. OK Rust TESTS 56 46 204800 1700
64593016 kobae964 C Nov. 9, 2019, 3:29 p.m. OK Rust TESTS 56 46 307200 1700
65906620 yuya178 C Nov. 28, 2019, 11:12 a.m. OK Rust TESTS 56 62 204800 1700
66415852 j31d0 C Dec. 6, 2019, 5:04 p.m. OK Scala TESTS 56 483 0 1700

remove filters

Back to search problems