Codeforces Round 659 (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
1384 Codeforces Round 659 (Div. 2) FINISHED False 7200 136221899 July 24, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2501 ) B2 Koa and the Beach (Hard Version) PROGRAMMING constructive algorithms greedy

B"The only difference between easy and hard versions is on constraints. In this version constraints are higher. You can make hacks only if all versions of the problem are solved. Koa the Koala is at the beach! The beach consists (from left to right) of a shore, n+1 meters of sea and an island at n+1 meters from the shore. She measured the depth of the sea at 1, 2, ... , n meters from the shore and saved them in array d . d_i denotes the depth of the sea at i meters from the shore for 1 <= i <= n . Like any beach this one has tide, the intensity of the tide is measured by parameter k and affects all depths from the beginning at time t=0 in the following way: Formally, let's define 0 -indexed array p = [0, 1, 2, ldots, k - 2, k - 1, k, k - 1, k - 2, ldots, 2, 1] of length 2k . At time t ( 0 <= t ) depth at i meters from the shore equals d_i + p[t bmod 2k] ( t bmod 2k denotes the remainder of the division of t by 2k ). Note that the changes occur instantaneously after each second, see the notes for better understanding. At time t=0 Koa is standing at the shore and wants to get to the island. Suppose that at some time t ( 0 <= t ) she is at x ( 0 <= x <= n ) meters from the shore: Note that while Koa swims tide doesn't have effect on her (ie. she can't drown while swimming). Note that Koa can choose to stay on the shore for as long as she needs and neither the shore or the island are affected by the tide (they are solid ground and she won't drown there). Koa wants to know whether she can go from the shore to the island. Help her! The first line of the input contains one integer t ( 1 <= t <= 10^4 ) -- the number of test cases. Description of the test cases follows. The first line of each test case contains three integers n , k and l ( 1 <= n <= 3 cdot 10^5; 1 <= k <= 10^9; "...

Tutorials

Codeforces Round #659 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
88242892 gxlois B2 July 29, 2020, 1:26 a.m. OK D TESTS 42 561 42803200
91565823 wuruzhao B2 Sept. 1, 2020, 12:45 p.m. OK GNU C++11 TESTS 42 31 2457600
89839109 luogu_bot5 B2 Aug. 14, 2020, 3:57 a.m. OK GNU C++11 TESTS 42 31 3276800
88699074 mikoo B2 Aug. 2, 2020, 2:09 a.m. OK GNU C++11 TESTS 42 31 6553600
88136779 WaluntOvO B2 July 27, 2020, 2:51 p.m. OK GNU C++11 TESTS 42 31 8089600
88060872 Rajib_119 B2 July 26, 2020, 1:54 p.m. OK GNU C++11 TESTS 42 31 8192000
88090397 Qingyu B2 July 27, 2020, 12:39 a.m. OK GNU C++11 TESTS 42 31 11980800
89978352 BaseAI B2 Aug. 15, 2020, 12:43 a.m. OK GNU C++11 TESTS 42 46 2662400
90061210 vjudge4 B2 Aug. 16, 2020, 6:29 a.m. OK GNU C++11 TESTS 42 46 4300800
90213337 ybw051114 B2 Aug. 17, 2020, 9:24 a.m. OK GNU C++11 TESTS 42 46 5120000
88207585 CTP_314 B2 July 28, 2020, 1:28 p.m. OK GNU C++11 TESTS 42 46 5120000
89861224 BeNoble B2 Aug. 14, 2020, 10:19 a.m. OK GNU C++14 TESTS 42 46 2252800
87992938 vjudge3 B2 July 25, 2020, 2:13 p.m. OK GNU C++14 TESTS 42 46 5939200
91341731 lavenderwithbluish B2 Aug. 30, 2020, 12:27 p.m. OK GNU C++14 TESTS 42 78 3788800
91546921 arman_ferdous B2 Sept. 1, 2020, 8:01 a.m. OK GNU C++14 TESTS 42 93 1228800
89848703 GSDXHKQ B2 Aug. 14, 2020, 7 a.m. OK GNU C++14 TESTS 42 93 1228800
88725155 SuperJ6 B2 Aug. 2, 2020, 11:04 a.m. OK GNU C++14 TESTS 42 93 3788800
88725059 SuperJ6 B2 Aug. 2, 2020, 11:03 a.m. OK GNU C++14 TESTS 42 93 3788800
88443311 liuyy B2 July 30, 2020, 1:28 p.m. OK GNU C++14 TESTS 42 93 3788800
88125239 I_love_Myself_ B2 July 27, 2020, 12:20 p.m. OK GNU C++14 TESTS 42 93 3993600
89494285 MengWH B2 Aug. 10, 2020, 8:39 a.m. OK GNU C++14 TESTS 42 93 4915200
88200638 jianglin332 B2 July 28, 2020, 11:54 a.m. OK GNU C++17 TESTS 42 77 3993600
88232095 luisBah B2 July 28, 2020, 7:06 p.m. OK GNU C++17 TESTS 42 77 5120000
90409968 spatarel B2 Aug. 19, 2020, 5:21 p.m. OK GNU C++17 TESTS 42 78 1126400
91521744 Prabal08 B2 Aug. 31, 2020, 7:59 p.m. OK GNU C++17 TESTS 42 93 1228800
89657307 doublefire B2 Aug. 12, 2020, 2:07 p.m. OK GNU C++17 TESTS 42 93 4915200
89503210 vjudge5 B2 Aug. 10, 2020, 11:05 a.m. OK GNU C++17 TESTS 42 93 4915200
89480124 Hakaishin B2 Aug. 10, 2020, 4:54 a.m. OK GNU C++17 TESTS 42 93 4915200
88793390 vjudge4 B2 Aug. 3, 2020, 11:24 a.m. OK GNU C++17 TESTS 42 93 4915200
88732957 kbaaa B2 Aug. 2, 2020, 1:05 p.m. OK GNU C++17 TESTS 42 93 4915200
88267970 Ali.haidar B2 July 29, 2020, 8:49 a.m. OK GNU C++17 TESTS 42 93 4915200
90043419 Phortox B2 Aug. 15, 2020, 7:34 p.m. OK GNU C++17 (64) TESTS 42 62 1228800
88686161 Qwerty1232 B2 Aug. 1, 2020, 6:04 p.m. OK GNU C++17 (64) TESTS 42 62 6758400
88047584 Racer5x B2 July 26, 2020, 10:33 a.m. OK GNU C++17 (64) TESTS 42 62 6758400
88744483 kort0n B2 Aug. 2, 2020, 3:47 p.m. OK GNU C++17 (64) TESTS 42 62 7475200
87993220 zxcv_1 B2 July 25, 2020, 2:17 p.m. OK GNU C++17 (64) TESTS 42 62 7884800
87999305 Koo_ B2 July 25, 2020, 3:51 p.m. OK GNU C++17 (64) TESTS 42 62 9728000
88274059 Sanchit1483 B2 July 29, 2020, 10:06 a.m. OK GNU C++17 (64) TESTS 42 62 14028800
91187104 Anila9007 B2 Aug. 28, 2020, 7:16 a.m. OK GNU C++17 (64) TESTS 42 77 0
88031559 wistful23 B2 July 26, 2020, 6:16 a.m. OK GNU C++17 (64) TESTS 42 77 4300800
89822615 elyutin159164 B2 Aug. 13, 2020, 7:03 p.m. OK GNU C++17 (64) TESTS 42 77 5427200
88725605 pohzipohzi B2 Aug. 2, 2020, 11:10 a.m. OK Go TESTS 42 78 17715200
89119832 rehack B2 Aug. 6, 2020, 12:23 p.m. OK Go TESTS 42 78 26009600
88101541 kabirpathak B2 July 27, 2020, 6:16 a.m. OK Java 11 TESTS 42 234 23961600
88174746 blackBird B2 July 28, 2020, 5:53 a.m. OK Java 11 TESTS 42 234 28979200
88221063 UD_xlinsist B2 July 28, 2020, 4:12 p.m. OK Java 11 TESTS 42 234 29184000
88220800 UD_xlinsist B2 July 28, 2020, 4:08 p.m. OK Java 11 TESTS 42 264 29184000
88868091 nits24 B2 Aug. 4, 2020, 12:07 p.m. OK Java 11 TESTS 42 265 55091200
88285922 tirtho2107 B2 July 29, 2020, 12:41 p.m. OK Java 11 TESTS 42 311 54374400
88177254 PizzaLovers007 B2 July 28, 2020, 6:35 a.m. OK Java 11 TESTS 42 374 48025600
88110357 darthwalker231 B2 July 27, 2020, 8:37 a.m. OK Java 11 TESTS 42 561 24473600
87990823 hello_coders10 B2 July 25, 2020, 1:43 p.m. OK Java 11 TESTS 42 561 28160000
88000078 SuCculENT_SB B2 July 25, 2020, 4:04 p.m. OK Java 11 TESTS 42 576 28160000
88128844 MartyByrde B2 July 27, 2020, 1:08 p.m. OK Java 8 TESTS 42 124 24883200
88151552 bhautik_77 B2 July 27, 2020, 6:17 p.m. OK Java 8 TESTS 42 140 20684800
89546313 yaoct B2 Aug. 11, 2020, 4 a.m. OK Java 8 TESTS 42 170 35635200
88018710 2020akadaver B2 July 25, 2020, 10:30 p.m. OK Java 8 TESTS 42 171 33587200
91316087 partizan22 B2 Aug. 29, 2020, 11:45 p.m. OK Java 8 TESTS 42 187 12902400
88057175 reborn.chris B2 July 26, 2020, 1:05 p.m. OK Java 8 TESTS 42 187 20787200
88112399 horseprabhat625 B2 July 27, 2020, 9:09 a.m. OK Java 8 TESTS 42 187 37376000
88143298 varun4996 B2 July 27, 2020, 4:15 p.m. OK Java 8 TESTS 42 202 33484800
88716699 godxpunk B2 Aug. 2, 2020, 8:52 a.m. OK Java 8 TESTS 42 202 37376000
88012105 flyman3046 B2 July 25, 2020, 7:38 p.m. OK Java 8 TESTS 42 202 40550400
88122860 Spheniscine B2 July 27, 2020, 11:47 a.m. OK Kotlin TESTS 42 155 20684800
88095038 Spheniscine B2 July 27, 2020, 3:27 a.m. OK Kotlin TESTS 42 171 20582400
88051468 a11eca B2 July 26, 2020, 11:37 a.m. OK Kotlin TESTS 42 576 54476800
91697675 azukun B2 Sept. 3, 2020, 7:48 a.m. OK Mono C# TESTS 42 155 46387200
88564541 P___ B2 July 31, 2020, 6:46 a.m. OK MS C++ 2017 TESTS 42 109 5222400
88162762 nns2009 B2 July 28, 2020, 12:07 a.m. OK MS C++ 2017 TESTS 42 280 4915200
88113895 60D9 B2 July 27, 2020, 9:35 a.m. OK MS C++ 2017 TESTS 42 295 6451200
88265682 savinovalex B2 July 29, 2020, 8:22 a.m. OK MS C++ 2017 TESTS 42 296 6144000
88690563 qwerty123454321 B2 Aug. 1, 2020, 7:40 p.m. OK MS C++ 2017 TESTS 42 296 6963200
89507932 Mbox B2 Aug. 10, 2020, 12:15 p.m. OK MS C++ 2017 TESTS 42 296 8294400
88265349 savinovalex B2 July 29, 2020, 8:19 a.m. OK MS C++ 2017 TESTS 42 311 6144000
89210058 GeKa B2 Aug. 7, 2020, 2:05 p.m. OK MS C++ 2017 TESTS 42 312 6144000
88072113 fanos B2 July 26, 2020, 4:22 p.m. OK PascalABC.NET TESTS 42 655 27238400
88293975 a1ikeda B2 July 29, 2020, 2:26 p.m. OK Perl TESTS 42 576 50483200
87990706 raj1307 B2 July 25, 2020, 1:42 p.m. OK PyPy 2 TESTS 42 186 49664000
87990640 raj1307 B2 July 25, 2020, 1:41 p.m. OK PyPy 2 TESTS 42 186 49766400
88888195 SK_EON B2 Aug. 4, 2020, 4:19 p.m. OK PyPy 2 TESTS 42 311 58880000
88102913 tamato B2 July 27, 2020, 6:41 a.m. OK PyPy 3 TESTS 42 202 44441600
90448755 YMSeah B2 Aug. 20, 2020, 9:06 a.m. OK PyPy 3 TESTS 42 249 23756800
90452054 YMSeah B2 Aug. 20, 2020, 9:59 a.m. OK PyPy 3 TESTS 42 249 23859200
88886208 yumi-yutaku B2 Aug. 4, 2020, 3:51 p.m. OK PyPy 3 TESTS 42 249 49254400
88241427 throwawayatcoder B2 July 29, 2020, 12:21 a.m. OK PyPy 3 TESTS 42 265 47923200
89011298 Rubesty B2 Aug. 5, 2020, 3:27 p.m. OK PyPy 3 TESTS 42 389 40550400
88065335 f2016082 B2 July 26, 2020, 2:49 p.m. OK PyPy 3 TESTS 42 389 41984000
88192877 juppy B2 July 28, 2020, 10:07 a.m. OK PyPy 3 TESTS 42 389 46899200
88987729 Rubesty B2 Aug. 5, 2020, 2:59 p.m. OK PyPy 3 TESTS 42 404 40652800
87988128 KA_Rma B2 July 25, 2020, 1:02 p.m. OK PyPy 3 TESTS 42 405 45772800
91303076 ic3kree1 B2 Aug. 29, 2020, 5:36 p.m. OK Python 3 TESTS 42 202 18534400
88062835 alanchann B2 July 26, 2020, 2:19 p.m. OK Python 3 TESTS 42 218 24883200
88039321 mkawa2 B2 July 26, 2020, 8:20 a.m. OK Python 3 TESTS 42 265 24883200
88531782 nathan__drake B2 July 30, 2020, 6:16 p.m. OK Python 3 TESTS 42 358 30412800
88181224 tinku10 B2 July 28, 2020, 7:30 a.m. OK Python 3 TESTS 42 577 30412800
88542658 BlackBear B2 July 30, 2020, 9:30 p.m. OK Python 3 TESTS 42 655 29491200
88006866 codershuvo B2 July 25, 2020, 6:01 p.m. OK Python 3 TESTS 42 842 69836800
87997152 jhasaurav215 B2 July 25, 2020, 3:17 p.m. OK Python 3 TESTS 42 951 82432000
88173271 Strorkis B2 July 28, 2020, 5:26 a.m. OK Rust TESTS 42 46 11673600
90443677 Svlad_Cjelli B2 Aug. 20, 2020, 7:53 a.m. OK Rust TESTS 42 78 7884800
89552622 terraformer B2 Aug. 11, 2020, 6:11 a.m. OK Rust TESTS 42 140 13824000

remove filters

Back to search problems