Educational Codeforces Round 92 (Rated for 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
1389 Educational Codeforces Round 92 (Rated for Div. 2) FINISHED False 7200 135789899 July 29, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 16914 ) B Array Walk PROGRAMMING dp greedy math

B"You are given an array a_1, a_2, ... , a_n , consisting of n positive integers. Initially you are standing at index 1 and have a score equal to a_1 . You can perform two kinds of moves: You want to perform exactly k moves. Also, there should be no more than z moves to the left among them. What is the maximum score you can achieve? The first line contains a single integer t ( 1 <= t <= 10^4 ) -- the number of testcases. The first line of each testcase contains three integers n, k and z ( 2 <= n <= 10^5 , 1 <= k <= n - 1 , 0 <= z <= min(5, k) ) -- the number of elements in the array, the total number of moves you should perform and the maximum number of moves to the left you can perform. The second line of each testcase contains n integers a_1, a_2, ... , a_n ( 1 <= a_i <= 10^4 ) -- the given array. The sum of n over all testcases does not exceed 3 cdot 10^5 . Print t integers -- for each testcase output the maximum score you can achieve if you make exactly k moves in total, no more than z of them are to the left and there are no two or more moves to the left in a row. In the first testcase you are not allowed to move left at all. So you make four moves to the right and obtain the score a_1 + a_2 + a_3 + a_4 + a_5 . In the second example you can move one time to the left. So we can follow these moves: right, right, left, right. The score will be a_1 + a_2 + a_3 + a_2 + a_3 . In the third example you can move four times to the left but it's not optimal anyway, you can just move four times to the right and obtain the score a_1 + a_2 + a_3 + a_4 + a_5 . "...

Tutorials

80809

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
88854699 dyxx B Aug. 4, 2020, 8:34 a.m. OK GNU C11 TESTS 12 93 4300800
89134559 JoseTomas01 B Aug. 6, 2020, 3:03 p.m. OK GNU C11 TESTS 12 93 5324800
89174771 Wenbo888 B Aug. 7, 2020, 5:17 a.m. OK GNU C11 TESTS 12 109 18944000
88878962 jhasatyam991 B Aug. 4, 2020, 2:22 p.m. OK GNU C11 TESTS 12 1045 14540800
89470194 luogu_bot5 B Aug. 9, 2020, 11:41 p.m. OK GNU C++11 TESTS 12 30 4096000
89839695 Snpilola B Aug. 14, 2020, 4:13 a.m. OK GNU C++11 TESTS 12 31 409600
89839706 Snpilola B Aug. 14, 2020, 4:14 a.m. OK GNU C++11 TESTS 12 31 614400
89839201 luogu_bot3 B Aug. 14, 2020, 4 a.m. OK GNU C++11 TESTS 12 31 2048000
89778024 M_sea B Aug. 13, 2020, 9 a.m. OK GNU C++11 TESTS 12 31 2764800
90229086 licunchun2006 B Aug. 17, 2020, 12:50 p.m. OK GNU C++11 TESTS 12 31 2764800
89652135 OIerwanhong B Aug. 12, 2020, 12:54 p.m. OK GNU C++11 TESTS 12 31 4710400
89087059 wuruzhao B Aug. 6, 2020, 4:44 a.m. OK GNU C++11 TESTS 12 31 5120000
89080959 Adelard B Aug. 6, 2020, 2:37 a.m. OK GNU C++11 TESTS 12 31 5120000
88673444 EncodeTalker B Aug. 1, 2020, 2:39 p.m. OK GNU C++11 TESTS 12 31 5529600
88661498 baddog B Aug. 1, 2020, 11:55 a.m. OK GNU C++14 TESTS 12 77 4096000
90857037 caro07 B Aug. 24, 2020, 8:06 p.m. OK GNU C++14 TESTS 12 78 409600
91552973 ImLovingIt B Sept. 1, 2020, 9:34 a.m. OK GNU C++14 TESTS 12 78 409600
91503281 sairam0501 B Aug. 31, 2020, 3:11 p.m. OK GNU C++14 TESTS 12 78 819200
89820523 dejang B Aug. 13, 2020, 6:24 p.m. OK GNU C++14 TESTS 12 78 1228800
90066951 __Heisenberg__ B Aug. 16, 2020, 8:07 a.m. OK GNU C++14 TESTS 12 78 2457600
90390783 NRK7 B Aug. 19, 2020, 1:10 p.m. OK GNU C++14 TESTS 12 78 3993600
89322822 pokhi_96 B Aug. 8, 2020, 9:29 a.m. OK GNU C++14 TESTS 12 78 4096000
88932727 Kir_P B Aug. 5, 2020, 9:30 a.m. OK GNU C++14 TESTS 12 78 4096000
89387773 ninilo97 B Aug. 9, 2020, 9:14 a.m. OK GNU C++14 TESTS 12 78 4096000
89628676 Clouder0 B Aug. 12, 2020, 6:59 a.m. OK GNU C++17 TESTS 12 30 5939200
88696275 moomoo02 B Aug. 1, 2020, 11:23 p.m. OK GNU C++17 TESTS 12 77 4096000
88841312 _Ocean_ B Aug. 4, 2020, 4:58 a.m. OK GNU C++17 TESTS 12 77 4096000
88678220 keepers B Aug. 1, 2020, 3:49 p.m. OK GNU C++17 TESTS 12 77 4096000
88865200 someshkj B Aug. 4, 2020, 11:10 a.m. OK GNU C++17 TESTS 12 77 4915200
88731051 hunni10 B Aug. 2, 2020, 12:34 p.m. OK GNU C++17 TESTS 12 77 5529600
89843121 vjudge5 B Aug. 14, 2020, 5:26 a.m. OK GNU C++17 TESTS 12 77 32051200
89842686 sirearsh B Aug. 14, 2020, 5:17 a.m. OK GNU C++17 TESTS 12 78 819200
89739637 himanshu4code B Aug. 12, 2020, 7:22 p.m. OK GNU C++17 TESTS 12 78 819200
90065969 deetav B Aug. 16, 2020, 7:50 a.m. OK GNU C++17 TESTS 12 78 1228800
89085698 sharrad99 B Aug. 6, 2020, 4:20 a.m. OK GNU C++17 (64) TESTS 12 46 4710400
89198228 fahimfarhan B Aug. 7, 2020, 11:04 a.m. OK GNU C++17 (64) TESTS 12 46 6758400
90372924 airad B Aug. 19, 2020, 8:51 a.m. OK GNU C++17 (64) TESTS 12 61 409600
90213882 kyon2326 B Aug. 17, 2020, 9:32 a.m. OK GNU C++17 (64) TESTS 12 61 2457600
88651271 IMCV B Aug. 1, 2020, 9:29 a.m. OK GNU C++17 (64) TESTS 12 61 5529600
88651564 IMCV B Aug. 1, 2020, 9:33 a.m. OK GNU C++17 (64) TESTS 12 61 5529600
89305986 frustrated_user B Aug. 8, 2020, 5:05 a.m. OK GNU C++17 (64) TESTS 12 61 5939200
90413467 chirag11032000 B Aug. 19, 2020, 6:18 p.m. OK GNU C++17 (64) TESTS 12 62 409600
89792804 iaNTU B Aug. 13, 2020, 12:22 p.m. OK GNU C++17 (64) TESTS 12 62 716800
91181894 whohet B Aug. 28, 2020, 5:41 a.m. OK GNU C++17 (64) TESTS 12 62 819200
88816673 pohzipohzi B Aug. 3, 2020, 4:39 p.m. OK Go TESTS 12 62 16179200
88837917 atilol B Aug. 4, 2020, 3:37 a.m. OK Go TESTS 12 124 15155200
89491970 Trishan B Aug. 10, 2020, 8:06 a.m. OK Go TESTS 12 124 35225600
89575880 Z0RR0 B Aug. 11, 2020, 12:20 p.m. OK Go TESTS 12 218 40960000
90355455 PizzaLovers007 B Aug. 19, 2020, 3:58 a.m. OK Java 11 TESTS 12 217 0
89552975 mm.devin.wang B Aug. 11, 2020, 6:16 a.m. OK Java 11 TESTS 12 218 24064000
89404000 boltUsain B Aug. 9, 2020, 1:49 p.m. OK Java 11 TESTS 12 233 41472000
89851965 zhupeijun B Aug. 14, 2020, 7:52 a.m. OK Java 11 TESTS 12 249 0
88735404 tirtho2107 B Aug. 2, 2020, 1:42 p.m. OK Java 11 TESTS 12 249 28467200
88637963 Ghost_retail B Aug. 1, 2020, 6:12 a.m. OK Java 11 TESTS 12 265 38809600
90845887 gsahil216 B Aug. 24, 2020, 4:48 p.m. OK Java 11 TESTS 12 280 0
90663118 yashkundu B Aug. 22, 2020, 7:01 a.m. OK Java 11 TESTS 12 280 23859200
89404111 nekoTheShadow B Aug. 9, 2020, 1:51 p.m. OK Java 11 TESTS 12 280 25088000
88844993 jd_dreamer B Aug. 4, 2020, 6:09 a.m. OK Java 11 TESTS 12 280 29081600
88666298 k_6101 B Aug. 1, 2020, 1:04 p.m. OK Java 8 TESTS 12 109 20377600
88735029 ineffablekenobi B Aug. 2, 2020, 1:36 p.m. OK Java 8 TESTS 12 109 20480000
88664186 k_6101 B Aug. 1, 2020, 12:34 p.m. OK Java 8 TESTS 12 124 20377600
89336661 Ajudiya_13 B Aug. 8, 2020, 1:10 p.m. OK Java 8 TESTS 12 124 20480000
88785185 godxpunk B Aug. 3, 2020, 9:01 a.m. OK Java 8 TESTS 12 140 21401600
88678501 PratyushS7 B Aug. 1, 2020, 3:53 p.m. OK Java 8 TESTS 12 155 20480000
88743000 yuzui B Aug. 2, 2020, 3:28 p.m. OK Java 8 TESTS 12 155 21504000
88742938 vjudge1 B Aug. 2, 2020, 3:27 p.m. OK Java 8 TESTS 12 155 21504000
90239110 eng_hardik B Aug. 17, 2020, 2:48 p.m. OK Java 8 TESTS 12 156 0
91347971 i_love_vim B Aug. 30, 2020, 1:58 p.m. OK Java 8 TESTS 12 171 21504000
88644725 wuchaojie925 B Aug. 1, 2020, 7:57 a.m. OK Kotlin TESTS 12 311 28262400
89651603 koper B Aug. 12, 2020, 12:46 p.m. OK Kotlin TESTS 12 482 25600000
88632565 Akaiyo B Aug. 1, 2020, 4:09 a.m. OK Kotlin TESTS 12 514 21299200
89504015 EmK B Aug. 10, 2020, 11:16 a.m. OK Mono C# TESTS 12 124 118784000
90047363 banana_peel B Aug. 15, 2020, 9:49 p.m. OK Mono C# TESTS 12 187 21094400
88900113 Xtreemist B Aug. 4, 2020, 7:34 p.m. OK Mono C# TESTS 12 218 32460800
89861646 azukun B Aug. 14, 2020, 10:26 a.m. OK Mono C# TESTS 12 998 27136000
88763092 getN1ght B Aug. 2, 2020, 10:58 p.m. OK MS C++ 2017 TESTS 12 234 6246400
89158716 icecap360 B Aug. 6, 2020, 9:02 p.m. OK MS C++ 2017 TESTS 12 249 5120000
88818546 anirudhgupta0510 B Aug. 3, 2020, 5:10 p.m. OK MS C++ 2017 TESTS 12 264 4505600
88901063 deltameth B Aug. 4, 2020, 7:58 p.m. OK MS C++ 2017 TESTS 12 265 7782400
88799420 Mad112233 B Aug. 3, 2020, 12:48 p.m. OK MS C++ 2017 TESTS 12 280 4915200
88795348 kurzwe6er B Aug. 3, 2020, 11:53 a.m. OK MS C++ 2017 TESTS 12 280 5222400
91048339 Explode B Aug. 26, 2020, 12:04 p.m. OK MS C++ 2017 TESTS 12 295 3993600
88799520 Mad112233 B Aug. 3, 2020, 12:49 p.m. OK MS C++ 2017 TESTS 12 296 4915200
89124419 yumtam B Aug. 6, 2020, 1:14 p.m. OK PyPy 2 TESTS 12 217 36864000
89095183 rajbit B Aug. 6, 2020, 7:06 a.m. OK PyPy 3 TESTS 12 248 35737600
91497119 yumi-yutaku B Aug. 31, 2020, 1:57 p.m. OK PyPy 3 TESTS 12 249 13107200
88841002 siyy B Aug. 4, 2020, 4:51 a.m. OK PyPy 3 TESTS 12 249 36864000
88689225 PracticeAccountICL B Aug. 1, 2020, 7:08 p.m. OK PyPy 3 TESTS 12 249 43724800
88689108 PracticeAccountICL B Aug. 1, 2020, 7:05 p.m. OK PyPy 3 TESTS 12 264 46796800
88890472 sohel_sec B Aug. 4, 2020, 4:52 p.m. OK PyPy 3 TESTS 12 327 33792000
89572191 roaris B Aug. 11, 2020, 11:22 a.m. OK PyPy 3 TESTS 12 358 33894400
89994183 chinmaym749 B Aug. 15, 2020, 6:55 a.m. OK PyPy 3 TESTS 12 389 15052800
89516971 roaris B Aug. 10, 2020, 2:15 p.m. OK PyPy 3 TESTS 12 436 39219200
88688800 PracticeAccountICL B Aug. 1, 2020, 6:58 p.m. OK PyPy 3 TESTS 12 483 44544000
89844438 TCFSH69 B Aug. 14, 2020, 5:50 a.m. OK Python 3 TESTS 12 468 12390400
89158303 rupesh B Aug. 6, 2020, 8:51 p.m. OK Python 3 TESTS 12 498 17817600
88937003 rishabh_ag1 B Aug. 5, 2020, 10:35 a.m. OK Python 3 TESTS 12 498 20992000
91035577 NewBeginner B Aug. 26, 2020, 9:12 a.m. OK Python 3 TESTS 12 514 11366400
90519604 carrymartes B Aug. 21, 2020, 9:32 a.m. OK Python 3 TESTS 12 514 16691200
89516020 nowrin_brown B Aug. 10, 2020, 2:03 p.m. OK Python 3 TESTS 12 529 16281600
89514393 nowrin_brown B Aug. 10, 2020, 1:43 p.m. OK Python 3 TESTS 12 529 16281600
88798050 virajudaysingh B Aug. 3, 2020, 12:29 p.m. OK Python 3 TESTS 12 560 16384000
90041584 tkhabia2303 B Aug. 15, 2020, 6:50 p.m. OK Python 3 TESTS 12 561 13209600
88750722 fayezazeyan B Aug. 2, 2020, 5:17 p.m. OK Python 3 TESTS 12 561 16384000
88640832 Andrey_R B Aug. 1, 2020, 7:01 a.m. OK Ruby TESTS 12 717 66355200
88830319 SteelRaven B Aug. 3, 2020, 9:55 p.m. OK Rust TESTS 12 46 6041600
88635449 Strorkis B Aug. 1, 2020, 5:23 a.m. OK Rust TESTS 12 124 6041600

remove filters

Back to search problems