Codeforces Round 637 (Div. 2) - Thanks, Ivan Belonogov!

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
1341 Codeforces Round 637 (Div. 2) - Thanks, Ivan Belonogov! FINISHED False 9000 144170099 April 23, 2020, 2:45 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 19746 ) B Nastya and Door PROGRAMMING greedy implementation

B'On February 14 Denis decided to give Valentine to Nastya and did not come up with anything better than to draw a huge red heart on the door of the length k ( k ge 3 ). Nastya was very confused by this present, so she decided to break the door, throwing it on the mountains. Mountains are described by a sequence of heights a_1, a_2, ... , a_n in order from left to right ( k <= n ). It is guaranteed that neighboring heights are not equal to each other (that is, a_i ne a_{i+1} for all i from 1 to n-1 ). Peaks of mountains on the segment [l,r] (from l to r ) are called indexes i such that l < i < r , a_{i - 1} < a_i and a_i > a_{i + 1} . It is worth noting that the boundary indexes l and r for the segment are not peaks. For example, if n=8 and a=[3,1,4,1,5,9,2,6] , then the segment [1,8] has only two peaks (with indexes 3 and 6 ), and there are no peaks on the segment [3, 6] . To break the door, Nastya throws it to a segment [l,l+k-1] of consecutive mountains of length k ( 1 <= l <= n-k+1 ). When the door touches the peaks of the mountains, it breaks into two parts, after that these parts will continue to fall in different halves and also break into pieces when touching the peaks of the mountains, and so on. Formally, the number of parts that the door will break into will be equal to p+1 , where p is the number of peaks on the segment [l,l+k-1] . Nastya wants to break it into as many pieces as possible. Help her choose such a segment of mountains [l, l+k-1] that the number of peaks on it is maximum. If there are several optimal segments, Nastya wants to find one for which the value l is minimal. Formally, you need to choose a segment of mountains [l, l+k-1] that has the maximum number of peaks. Among all such segments, you need to find the segment that has the minimum possible valu'...

Tutorials

Codeforces Round #637 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
77921197 vjudge2 B April 24, 2020, 2:15 p.m. OK Clang++17 Diagnostics TESTS 11 93 819200
77893195 Rajveer_100 B April 24, 2020, 8:26 a.m. OK Clang++17 Diagnostics TESTS 11 889 8294400
77845935 ruban B April 23, 2020, 4:58 p.m. OK Delphi TESTS 10 62 82841600
77819920 Leydenfrost B April 23, 2020, 3:56 p.m. OK FPC TESTS 10 77 819200
77869441 AnsonYeung B April 24, 2020, 3:10 a.m. OK FPC TESTS 11 77 1843200
77870004 AnsonYeung B April 24, 2020, 3:20 a.m. OK FPC TESTS 11 92 1843200
77827573 PAG B April 23, 2020, 4:13 p.m. OK FPC TESTS 10 108 1638400
77867524 fpc_coder B April 24, 2020, 2:33 a.m. OK FPC TESTS 11 311 1843200
77821360 codingking B April 23, 2020, 3:59 p.m. OK GNU C11 TESTS 10 61 819200
77839969 phimanshu_2000 B April 23, 2020, 4:42 p.m. OK GNU C11 TESTS 10 62 1638400
77838466 debaroy2002 B April 23, 2020, 4:38 p.m. OK GNU C11 TESTS 10 62 1638400
77824179 vinayakp B April 23, 2020, 4:05 p.m. OK GNU C11 TESTS 10 62 1638400
77848414 GuessWhatBBQ B April 23, 2020, 5:04 p.m. OK GNU C11 TESTS 10 62 2048000
77866081 Kriti_2000 B April 24, 2020, 1:58 a.m. OK GNU C11 TESTS 11 62 2457600
77867064 rakesh_roy_plabon B April 24, 2020, 2:22 a.m. OK GNU C11 TESTS 11 62 3993600
77866951 flayer_hunter B April 24, 2020, 2:20 a.m. OK GNU C11 TESTS 11 62 3993600
77868584 trans_el B April 24, 2020, 2:54 a.m. OK GNU C11 TESTS 11 77 819200
77926547 cornea B April 24, 2020, 3:01 p.m. OK GNU C11 TESTS 11 77 819200
77872641 Miraclys B April 24, 2020, 4:04 a.m. OK GNU C++11 TESTS 11 31 819200
77869801 YHHxBULIATANIA B April 24, 2020, 3:16 a.m. OK GNU C++11 TESTS 11 31 1638400
77865710 kdrkdr B April 24, 2020, 1:48 a.m. OK GNU C++11 TESTS 11 31 1638400
77883886 abhishekburnwal2 B April 24, 2020, 6:37 a.m. OK GNU C++11 TESTS 11 31 1638400
77880849 wasa855 B April 24, 2020, 6:01 a.m. OK GNU C++11 TESTS 11 31 1638400
77886244 Angel_Demon B April 24, 2020, 7:03 a.m. OK GNU C++11 TESTS 11 31 1843200
77928041 20180608109 B April 24, 2020, 3:14 p.m. OK GNU C++11 TESTS 11 31 12083200
77821075 rajon_aust B April 23, 2020, 3:58 p.m. OK GNU C++11 TESTS 10 46 819200
77866952 baolidakai B April 24, 2020, 2:20 a.m. OK GNU C++11 TESTS 11 46 819200
77866135 gjc1124646822 B April 24, 2020, 1:59 a.m. OK GNU C++11 TESTS 11 46 1024000
77982797 _heinz_ B April 25, 2020, 6:24 a.m. OK GNU C++14 TESTS 11 46 1638400
77876022 dumb_s B April 24, 2020, 4:55 a.m. OK GNU C++14 TESTS 11 46 1638400
77822291 I_love_you_my_girl B April 23, 2020, 4:01 p.m. OK GNU C++14 TESTS 10 46 1638400
77872078 omg_pankaj B April 24, 2020, 3:55 a.m. OK GNU C++14 TESTS 11 46 3993600
77879644 abhishek.kehsihba B April 24, 2020, 5:46 a.m. OK GNU C++14 TESTS 11 46 4812800
77826682 Ravi_kant B April 23, 2020, 4:10 p.m. OK GNU C++14 TESTS 10 61 819200
77965528 r3gz3n B April 25, 2020, 12:32 a.m. OK GNU C++14 TESTS 11 61 819200
77985440 Dezont B April 25, 2020, 6:54 a.m. OK GNU C++14 TESTS 11 61 1024000
77825516 MasterHiman B April 23, 2020, 4:08 p.m. OK GNU C++14 TESTS 10 61 1433600
77857418 Hitman571 B April 23, 2020, 10:03 p.m. OK GNU C++14 TESTS 10 61 1536000
77883721 DorinaSapfiria B April 24, 2020, 6:35 a.m. OK GNU C++17 TESTS 11 46 819200
77823031 ravinamani B April 23, 2020, 4:03 p.m. OK GNU C++17 TESTS 10 46 819200
77939636 gustason B April 24, 2020, 5:06 p.m. OK GNU C++17 TESTS 11 46 1638400
77862349 mr1Happy B April 24, 2020, 12:04 a.m. OK GNU C++17 TESTS 11 46 1638400
77864197 hanxianzhe B April 24, 2020, 1:02 a.m. OK GNU C++17 TESTS 11 46 2355200
77904004 Newbie-Compiler B April 24, 2020, 10:54 a.m. OK GNU C++17 TESTS 11 46 80179200
77888137 syyntx B April 24, 2020, 7:26 a.m. OK GNU C++17 TESTS 11 61 204800
77924498 Bakkar- B April 24, 2020, 2:45 p.m. OK GNU C++17 TESTS 11 61 819200
77934316 stan.ros B April 24, 2020, 4:08 p.m. OK GNU C++17 TESTS 11 61 819200
77948712 I_Love_Afrin B April 24, 2020, 6:56 p.m. OK GNU C++17 TESTS 11 61 819200
77859204 timf1089 B April 23, 2020, 10:37 p.m. OK GNU C++17 (64) TESTS 11 31 819200
77919500 kushu4898 B April 24, 2020, 2:01 p.m. OK GNU C++17 (64) TESTS 11 46 716800
77830466 xamter B April 23, 2020, 4:19 p.m. OK GNU C++17 (64) TESTS 10 46 819200
77888688 achvanov B April 24, 2020, 7:32 a.m. OK GNU C++17 (64) TESTS 11 46 819200
77985769 shimul_duet B April 25, 2020, 6:57 a.m. OK GNU C++17 (64) TESTS 11 46 1024000
77985862 shimul_duet B April 25, 2020, 6:58 a.m. OK GNU C++17 (64) TESTS 11 46 1024000
77902556 hosein_bidaki B April 24, 2020, 10:35 a.m. OK GNU C++17 (64) TESTS 11 46 1024000
77973481 ir_1st_vil B April 25, 2020, 4:11 a.m. OK GNU C++17 (64) TESTS 11 46 1638400
77957466 hltk B April 24, 2020, 9:02 p.m. OK GNU C++17 (64) TESTS 11 46 1638400
77948893 wjli B April 24, 2020, 6:58 p.m. OK GNU C++17 (64) TESTS 11 46 1638400
77867895 synapse B April 24, 2020, 2:40 a.m. OK Go TESTS 11 109 819200
77824893 Perman B April 23, 2020, 4:07 p.m. OK Go TESTS 10 124 307200
77882271 synapse B April 24, 2020, 6:18 a.m. OK Go TESTS 11 155 819200
77845701 dblokhin B April 23, 2020, 4:57 p.m. OK Go TESTS 10 155 1638400
77862954 codelegend B April 24, 2020, 12:23 a.m. OK Haskell TESTS 11 452 51507200
77828947 kgcode B April 23, 2020, 4:16 p.m. OK Java 11 TESTS 10 187 0
77846860 EigenFunk B April 23, 2020, 5 p.m. OK Java 11 TESTS 10 217 0
77830434 bckslsh03 B April 23, 2020, 4:19 p.m. OK Java 11 TESTS 10 217 0
77855469 jaynils B April 23, 2020, 9:38 p.m. OK Java 11 TESTS 10 233 0
77824379 Anonymous B April 23, 2020, 4:05 p.m. OK Java 11 TESTS 10 233 0
77820517 p_unit B April 23, 2020, 3:57 p.m. OK Java 11 TESTS 10 233 0
77857581 ddhroov10 B April 23, 2020, 10:06 p.m. OK Java 11 TESTS 11 248 307200
77916756 dakshsagar_ B April 24, 2020, 1:41 p.m. OK Java 11 TESTS 11 249 0
77832966 ak363255 B April 23, 2020, 4:25 p.m. OK Java 11 TESTS 10 249 0
77821620 Kimo_Fathy B April 23, 2020, 4 p.m. OK Java 11 TESTS 10 249 921600
77883473 ragnarok001 B April 24, 2020, 6:32 a.m. OK Java 8 TESTS 11 109 0
77881344 rr459595 B April 24, 2020, 6:07 a.m. OK Java 8 TESTS 11 109 0
77834494 atharvat77 B April 23, 2020, 4:29 p.m. OK Java 8 TESTS 10 109 0
77832956 nikhil_supertramp B April 23, 2020, 4:25 p.m. OK Java 8 TESTS 10 109 0
77825698 dewanshnigam B April 23, 2020, 4:08 p.m. OK Java 8 TESTS 10 109 0
77914943 K.A.R.M.A B April 24, 2020, 1:26 p.m. OK Java 8 TESTS 11 124 0
77905489 maheshwari29 B April 24, 2020, 11:13 a.m. OK Java 8 TESTS 11 124 0
77903914 K.A.R.M.A B April 24, 2020, 10:53 a.m. OK Java 8 TESTS 11 124 0
77891174 Pranay2516 B April 24, 2020, 8:02 a.m. OK Java 8 TESTS 11 124 0
77885089 yash49 B April 24, 2020, 6:50 a.m. OK Java 8 TESTS 11 124 0
77861273 Hakiobo B April 23, 2020, 11:31 p.m. OK Kotlin TESTS 11 140 0
77861207 Hakiobo B April 23, 2020, 11:29 p.m. OK Kotlin TESTS 11 140 0
77864372 Spheniscine B April 24, 2020, 1:07 a.m. OK Kotlin TESTS 11 171 6144000
77864512 Spheniscine B April 24, 2020, 1:11 a.m. OK Kotlin TESTS 11 187 6144000
77860466 Hakiobo B April 23, 2020, 11:09 p.m. OK Kotlin TESTS 11 187 14540800
77860621 Hakiobo B April 23, 2020, 11:13 p.m. OK Kotlin TESTS 11 202 15155200
77914560 TadijaSebez B April 24, 2020, 1:23 p.m. OK Kotlin TESTS 11 264 13926400
77836063 ravinem1 B April 23, 2020, 4:32 p.m. OK Mono C# TESTS 10 139 19763200
77864307 phoenicyan B April 24, 2020, 1:05 a.m. OK MS C++ TESTS 11 171 1433600
77857886 YTICpoch B April 23, 2020, 10:10 p.m. OK MS C++ TESTS 11 202 12902400
77822315 Cutest_Junior_Tom B April 23, 2020, 4:01 p.m. OK MS C++ 2017 TESTS 10 62 1638400
77896309 Bigface B April 24, 2020, 9:03 a.m. OK MS C++ 2017 TESTS 11 77 7987200
77828161 toureiffel-2018 B April 23, 2020, 4:14 p.m. OK MS C++ 2017 TESTS 10 78 819200
77895428 Bigface B April 24, 2020, 8:53 a.m. OK MS C++ 2017 TESTS 11 78 1638400
77838138 NCG4039. B April 23, 2020, 4:38 p.m. OK MS C++ 2017 TESTS 10 78 4812800
77839416 BingHui B April 23, 2020, 4:41 p.m. OK MS C++ 2017 TESTS 10 108 1638400
77864450 brined_fish B April 24, 2020, 1:10 a.m. OK MS C++ 2017 TESTS 11 140 1638400
77830409 AquilaXP B April 23, 2020, 4:19 p.m. OK MS C++ 2017 TESTS 10 186 1228800
77869959 nhuyphung B April 24, 2020, 3:20 a.m. OK MS C++ 2017 TESTS 11 186 1638400
77952156 __qwerty__ B April 24, 2020, 7:44 p.m. OK MS C++ 2017 TESTS 11 186 3276800
77877283 arpit2438735 B April 24, 2020, 5:14 a.m. OK Node.js TESTS 11 342 14233600
77859538 c1729 B April 23, 2020, 10:46 p.m. OK PyPy 2 TESTS 11 202 12288000
77822227 chaudhary_19 B April 23, 2020, 4:01 p.m. OK PyPy 2 TESTS 10 202 14745600
77872393 ksdthegr8 B April 24, 2020, 4 a.m. OK PyPy 2 TESTS 11 218 10752000
77935262 snape_here B April 24, 2020, 4:18 p.m. OK PyPy 2 TESTS 11 218 15360000
77829216 mo-hit B April 23, 2020, 4:16 p.m. OK PyPy 2 TESTS 10 327 17100800
77884836 kit.shiron B April 24, 2020, 6:47 a.m. OK PyPy 2 TESTS 11 436 11673600
77823960 yamatoumi B April 23, 2020, 4:05 p.m. OK PyPy 2 TESTS 10 499 11673600
77872239 ksdthegr8 B April 24, 2020, 3:58 a.m. OK PyPy 2 TESTS 11 514 11468800
77942517 apoorvwatsky B April 24, 2020, 5:40 p.m. OK PyPy 3 TESTS 11 217 16896000
77857771 gintoki_s B April 23, 2020, 10:08 p.m. OK PyPy 3 TESTS 11 218 15769600
77833384 PracticeAccountICL B April 23, 2020, 4:26 p.m. OK PyPy 3 TESTS 10 280 16896000
77940826 Anuranjan_Pandey B April 24, 2020, 5:20 p.m. OK PyPy 3 TESTS 11 295 16179200
77872299 priyanshu.code B April 24, 2020, 3:59 a.m. OK PyPy 3 TESTS 11 295 16588800
77822428 jabhi_18 B April 23, 2020, 4:01 p.m. OK PyPy 3 TESTS 10 311 15257600
77837386 Achilles221B B April 23, 2020, 4:36 p.m. OK PyPy 3 TESTS 10 311 15769600
77836081 opensteinsgate B April 23, 2020, 4:32 p.m. OK PyPy 3 TESTS 10 311 17510400
77836058 aanya31 B April 23, 2020, 4:32 p.m. OK PyPy 3 TESTS 10 311 18636800
77966147 roaris B April 25, 2020, 12:54 a.m. OK PyPy 3 TESTS 11 312 17305600
77838069 Mike10 B April 23, 2020, 4:37 p.m. OK Python 2 TESTS 10 358 11878400
77862263 ComptineDunAutreEte B April 24, 2020, 12:01 a.m. OK Python 2 TESTS 11 421 11059200
77830158 s1997 B April 23, 2020, 4:19 p.m. OK Python 2 TESTS 10 514 13516800
77857535 midez B April 23, 2020, 10:05 p.m. OK Python 3 TESTS 11 280 13619200
77880903 sai_deepchand B April 24, 2020, 6:01 a.m. OK Python 3 TESTS 11 295 14131200
77861261 perDAYTwo_A B April 23, 2020, 11:31 p.m. OK Python 3 TESTS 11 311 14131200
77861445 perDAYTwo_A B April 23, 2020, 11:36 p.m. OK Python 3 TESTS 11 326 13619200
77829961 asifahmed13 B April 23, 2020, 4:18 p.m. OK Python 3 TESTS 10 327 13619200
77841779 meghnavarma0 B April 23, 2020, 4:47 p.m. OK Python 3 TESTS 10 342 14131200
77865414 benjaprograma B April 24, 2020, 1:40 a.m. OK Python 3 TESTS 11 343 13721600
77926779 servermonk B April 24, 2020, 3:03 p.m. OK Python 3 TESTS 11 343 14131200
77885456 eugalt B April 24, 2020, 6:54 a.m. OK Python 3 TESTS 11 343 14131200
77870277 soumya0531 B April 24, 2020, 3:25 a.m. OK Python 3 TESTS 11 343 14643200
77824664 beyanon B April 23, 2020, 4:06 p.m. OK Ruby TESTS 10 249 20377600
77899982 xyqkoala B April 24, 2020, 9:46 a.m. OK Rust TESTS 11 46 3174400
77899821 xyqkoala B April 24, 2020, 9:44 a.m. OK Rust TESTS 11 140 3174400
77866278 zz_kk B April 24, 2020, 2:03 a.m. OK Rust TESTS 11 171 1843200

remove filters

Back to search problems