Codeforces Round 651 (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
1370 Codeforces Round 651 (Div. 2) FINISHED False 8100 144516263 June 20, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 9875 ) D Odd-Even Subsequence PROGRAMMING binary search dp greedy implementation sortings

B'Ashish has an array a of size n . A subsequence of a is defined as a sequence that can be obtained from a by deleting some elements (possibly none), without changing the order of the remaining elements. Consider a subsequence s of a . He defines the cost of s as the minimum between: Note that the index of an element is its index in s , rather than its index in a . The positions are numbered from 1 . So, the cost of s is equal to min(max(s_1, s_3, s_5, ldots), max(s_2, s_4, s_6, ldots)) . For example, the cost of {7, 5, 6 } is min( max(7, 6), max(5) ) = min(7, 5) = 5 . Help him find the minimum cost of a subsequence of size k . The first line contains two integers n and k ( 2 <= q k <= q n <= q 2 cdot 10^5 ) -- the size of the array a and the size of the subsequence. The next line contains n integers a_1, a_2, ldots, a_n ( 1 <= q a_i <= q 10^9 ) -- the elements of the array a . Output a single integer -- the minimum cost of a subsequence of size k . In the first test, consider the subsequence s = {1, 3 } . Here the cost is equal to min(max(1), max(3)) = 1 . In the second test, consider the subsequence s = {1, 2, 4 } . Here the cost is equal to min(max(1, 4), max(2)) = 2 . In the fourth test, consider the subsequence s = {3, 50, 2, 4 } . Here the cost is equal to min(max(3, 2), max(50, 4)) = 3 . '...

Tutorials

Editorial — Codeforces Round #651

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
84498164 Gassa D June 20, 2020, 4:21 p.m. OK D TESTS 90 124 6144000
84497131 cedretaber D June 20, 2020, 4:19 p.m. OK D TESTS 90 140 13516800
84487906 daut-dlang D June 20, 2020, 4:01 p.m. OK D TESTS 90 202 13516800
84482189 rainboy D June 20, 2020, 3:50 p.m. OK GNU C11 TESTS 90 78 819200
84521049 tej_212 D June 20, 2020, 6:44 p.m. OK GNU C11 TESTS 90 78 12595200
84537398 ShadderLeave D June 21, 2020, 12:16 a.m. OK GNU C++11 TESTS 90 46 614400
84475300 cjtsear D June 20, 2020, 3:38 p.m. OK GNU C++11 TESTS 90 62 614400
84541952 lin_rany D June 21, 2020, 2:51 a.m. OK GNU C++11 TESTS 90 62 819200
84530287 Rajib_119 D June 20, 2020, 8:50 p.m. OK GNU C++11 TESTS 90 62 819200
84511870 woriazzc D June 20, 2020, 4:48 p.m. OK GNU C++11 TESTS 90 62 2662400
84491946 myx12345 D June 20, 2020, 4:09 p.m. OK GNU C++11 TESTS 90 62 4812800
84502721 Wall_breaker D June 20, 2020, 4:31 p.m. OK GNU C++11 TESTS 90 62 24268800
84537952 fattt D June 21, 2020, 12:37 a.m. OK GNU C++11 TESTS 90 77 12083200
84541871 AFRG D June 21, 2020, 2:49 a.m. OK GNU C++11 TESTS 90 78 819200
84543074 wazxy D June 21, 2020, 3:19 a.m. OK GNU C++11 TESTS 90 78 819200
84532858 nippletwister D June 20, 2020, 9:44 p.m. OK GNU C++14 TESTS 90 78 819200
84515758 cjhxqdt D June 20, 2020, 6:06 p.m. OK GNU C++14 TESTS 90 78 3174400
84530127 GabrielCamargo D June 20, 2020, 8:48 p.m. OK GNU C++14 TESTS 90 93 819200
84527790 Muhammad_Hokimiyon D June 20, 2020, 8:10 p.m. OK GNU C++14 TESTS 90 93 819200
84536774 f2016941 D June 20, 2020, 11:50 p.m. OK GNU C++14 TESTS 90 93 819200
84526316 Captain_Knuckles D June 20, 2020, 7:48 p.m. OK GNU C++14 TESTS 90 93 819200
84524914 lincolnx D June 20, 2020, 7:30 p.m. OK GNU C++14 TESTS 90 93 819200
84524905 jporwal09 D June 20, 2020, 7:30 p.m. OK GNU C++14 TESTS 90 93 819200
84526905 Amplifier. D June 20, 2020, 7:56 p.m. OK GNU C++14 TESTS 90 93 819200
84532152 agarwal101sanchit D June 20, 2020, 9:28 p.m. OK GNU C++14 TESTS 90 93 819200
84521703 bugdone D June 20, 2020, 6:50 p.m. OK GNU C++17 TESTS 90 93 819200
84542370 Yzm007 D June 21, 2020, 3:02 a.m. OK GNU C++17 TESTS 90 93 819200
84541723 one_by_1 D June 21, 2020, 2:45 a.m. OK GNU C++17 TESTS 90 93 819200
84540987 KM777 D June 21, 2020, 2:24 a.m. OK GNU C++17 TESTS 90 93 819200
84538469 thech0sen1 D June 21, 2020, 12:56 a.m. OK GNU C++17 TESTS 90 93 819200
84535924 wysoowek D June 20, 2020, 11:13 p.m. OK GNU C++17 TESTS 90 93 819200
84524204 rabsun_IV D June 20, 2020, 7:20 p.m. OK GNU C++17 TESTS 90 93 819200
84522610 higazy D June 20, 2020, 7 p.m. OK GNU C++17 TESTS 90 93 819200
84516545 ashutosh_aks D June 20, 2020, 6:09 p.m. OK GNU C++17 TESTS 90 93 819200
84480524 xiaoshizhan D June 20, 2020, 3:47 p.m. OK GNU C++17 TESTS 90 93 819200
84538955 tyler D June 21, 2020, 1:15 a.m. OK GNU C++17 (64) TESTS 90 62 819200
84532089 Ebiarat D June 20, 2020, 9:26 p.m. OK GNU C++17 (64) TESTS 90 77 819200
84527858 Hamoudi D June 20, 2020, 8:11 p.m. OK GNU C++17 (64) TESTS 90 77 819200
84517214 Owmicron D June 20, 2020, 6:13 p.m. OK GNU C++17 (64) TESTS 90 77 819200
84515233 vok8 D June 20, 2020, 6:05 p.m. OK GNU C++17 (64) TESTS 90 77 819200
84515204 Pandemic D June 20, 2020, 6:05 p.m. OK GNU C++17 (64) TESTS 90 77 819200
84496976 jacob.b.zhang D June 20, 2020, 4:19 p.m. OK GNU C++17 (64) TESTS 90 77 819200
84496806 Narut D June 20, 2020, 4:18 p.m. OK GNU C++17 (64) TESTS 90 77 819200
84479937 plasma-effect D June 20, 2020, 3:46 p.m. OK GNU C++17 (64) TESTS 90 77 819200
84537311 Bediver D June 21, 2020, 12:12 a.m. OK GNU C++17 (64) TESTS 90 77 819200
84539582 Thallium_is_Vegetable D June 21, 2020, 1:39 a.m. OK Go TESTS 90 93 4505600
84517938 minimario D June 20, 2020, 6:18 p.m. OK Haskell TESTS 90 1528 92569600
84526238 pk_sinha53 D June 20, 2020, 7:47 p.m. OK Java 11 TESTS 90 202 0
84498995 blackBird D June 20, 2020, 4:23 p.m. OK Java 11 TESTS 90 218 0
84529750 NalinTiwary D June 20, 2020, 8:41 p.m. OK Java 11 TESTS 90 248 3072000
84531995 Apass.Jack D June 20, 2020, 9:24 p.m. OK Java 11 TESTS 90 249 0
84538384 kelvinc1024 D June 21, 2020, 12:53 a.m. OK Java 11 TESTS 90 249 0
84504287 b__d D June 20, 2020, 4:34 p.m. OK Java 11 TESTS 90 249 0
84479755 Giantpizzahead D June 20, 2020, 3:46 p.m. OK Java 11 TESTS 90 249 0
84526289 devesh08 D June 20, 2020, 7:48 p.m. OK Java 11 TESTS 90 264 0
84520853 nafiz6 D June 20, 2020, 6:42 p.m. OK Java 11 TESTS 90 264 0
84535580 mphillotry D June 20, 2020, 11:01 p.m. OK Java 11 TESTS 90 265 0
84527784 Naman_123 D June 20, 2020, 8:09 p.m. OK Java 8 TESTS 90 140 0
84522221 MubtasimShahriar D June 20, 2020, 6:56 p.m. OK Java 8 TESTS 90 155 0
84477994 KharYusuf D June 20, 2020, 3:43 p.m. OK Java 8 TESTS 90 155 0
84476198 derrick20 D June 20, 2020, 3:40 p.m. OK Java 8 TESTS 90 156 0
84528125 ShesMyNerd D June 20, 2020, 8:15 p.m. OK Java 8 TESTS 90 171 0
84525407 prem_cse D June 20, 2020, 7:36 p.m. OK Java 8 TESTS 90 171 2764800
84525226 an09mous D June 20, 2020, 7:34 p.m. OK Java 8 TESTS 90 187 2764800
84524557 gantushig21 D June 20, 2020, 7:25 p.m. OK Java 8 TESTS 90 187 2764800
84521798 neeraj96 D June 20, 2020, 6:51 p.m. OK Java 8 TESTS 90 187 2764800
84519214 MohamedK D June 20, 2020, 6:27 p.m. OK Java 8 TESTS 90 187 2764800
84531684 Hakiobo D June 20, 2020, 9:17 p.m. OK Kotlin TESTS 90 233 0
84531773 Hakiobo D June 20, 2020, 9:19 p.m. OK Kotlin TESTS 90 264 614400
84531834 Hakiobo D June 20, 2020, 9:20 p.m. OK Kotlin TESTS 90 265 614400
84528808 Hakiobo D June 20, 2020, 8:25 p.m. OK Kotlin TESTS 90 343 4608000
84497767 Arnyev D June 20, 2020, 4:21 p.m. OK Mono C# TESTS 90 187 25702400
84495095 terry_u16 D June 20, 2020, 4:15 p.m. OK Mono C# TESTS 90 233 25702400
84508092 mban259 D June 20, 2020, 4:42 p.m. OK Mono C# TESTS 90 233 29286400
84512674 emelyan D June 20, 2020, 4:49 p.m. OK Mono C# TESTS 90 233 29286400
84504591 Volja D June 20, 2020, 4:35 p.m. OK MS C++ TESTS 90 93 3174400
84540334 r57shell D June 21, 2020, 2:05 a.m. OK MS C++ TESTS 90 109 7270400
84519211 TMHazem D June 20, 2020, 6:27 p.m. OK MS C++ 2017 TESTS 90 109 819200
84509971 PanZverski D June 20, 2020, 4:45 p.m. OK MS C++ 2017 TESTS 90 109 1024000
84525643 reikiriyama D June 20, 2020, 7:40 p.m. OK MS C++ 2017 TESTS 90 218 1126400
84517724 areo D June 20, 2020, 6:16 p.m. OK MS C++ 2017 TESTS 90 233 1638400
84531698 JulesIMF D June 20, 2020, 9:17 p.m. OK MS C++ 2017 TESTS 90 233 1843200
84487516 beastie D June 20, 2020, 4 p.m. OK MS C++ 2017 TESTS 90 233 1843200
84517560 Gravekper D June 20, 2020, 6:15 p.m. OK MS C++ 2017 TESTS 90 265 1024000
84504275 lioshik_ D June 20, 2020, 4:34 p.m. OK MS C++ 2017 TESTS 90 576 17203200
84479078 pajenegod D June 20, 2020, 3:45 p.m. OK PyPy 2 TESTS 90 234 13414400
84517865 realnimish D June 20, 2020, 6:17 p.m. OK PyPy 2 TESTS 90 280 15462400
84496782 yuusanlondon D June 20, 2020, 4:18 p.m. OK PyPy 3 TESTS 90 265 19456000
84519285 __eRRor__ D June 20, 2020, 6:28 p.m. OK PyPy 3 TESTS 90 280 18227200
84539945 cgfs10000 D June 21, 2020, 1:51 a.m. OK PyPy 3 TESTS 90 311 24883200
84530384 stnkien D June 20, 2020, 8:52 p.m. OK PyPy 3 TESTS 90 374 19046400
84499677 Coki628 D June 20, 2020, 4:25 p.m. OK PyPy 3 TESTS 90 374 19046400
84482376 Galkowsky D June 20, 2020, 3:51 p.m. OK PyPy 3 TESTS 90 374 19046400
84500083 killa_vanilla D June 20, 2020, 4:26 p.m. OK PyPy 3 TESTS 90 374 19456000
84486656 SPD_9X2 D June 20, 2020, 3:58 p.m. OK PyPy 3 TESTS 90 389 19046400
84518941 sh1194 D June 20, 2020, 6:25 p.m. OK PyPy 3 TESTS 90 390 19046400
84522677 Khan17 D June 20, 2020, 7:01 p.m. OK PyPy 3 TESTS 90 405 16179200
84528878 ap1008 D June 20, 2020, 8:27 p.m. OK Python 2 TESTS 90 1731 11980800
84526560 amankumarkeshu D June 20, 2020, 7:51 p.m. OK Python 3 TESTS 90 1840 17203200
84539754 Riyan D June 21, 2020, 1:44 a.m. OK Python 3 TESTS 90 1980 16896000
84484122 robostac D June 20, 2020, 3:54 p.m. OK Rust TESTS 90 93 7065600
84478714 limed D June 20, 2020, 3:44 p.m. OK Scala TESTS 90 576 5120000

remove filters

Back to search problems