Codeforces Round 633 (Div. 1)

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
1338 Codeforces Round 633 (Div. 1) FINISHED False 7200 145122899 April 12, 2020, 2:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 24304 ) A Powered Addition PROGRAMMING greedy math

B"You have an array a of length n . For every positive integer x you are going to perform the following operation during the x -th second: You have to make a nondecreasing as fast as possible. Find the smallest number T such that you can make the array nondecreasing after at most T seconds. Array a is nondecreasing if and only if a_{1} <= a_{2} <= ldots <= a_{n} . You have to answer t independent test cases. The first line contains a single integer t ( 1 <= t <= 10^{4} ) -- the number of test cases. The first line of each test case contains single integer n ( 1 <= n <= 10^{5} ) -- the length of array a . It is guaranteed that the sum of values of n over all test cases in the input does not exceed 10^{5} . The second line of each test case contains n integers a_{1}, a_{2}, ldots, a_{n} ( -10^{9} <= a_{i} <= 10^{9} ). For each test case, print the minimum number of seconds in which you can make a nondecreasing. In the first test case, if you select indices 3, 4 at the 1 -st second and 4 at the 2 -nd second, then a will become [1, 7, 7, 8] . There are some other possible ways to make a nondecreasing in 2 seconds, but you can't do it faster. In the second test case, a is already nondecreasing, so answer is 0 . In the third test case, if you do nothing at first 2 seconds and select index 2 at the 3 -rd second, a will become [0, 0] . "...

Tutorials

Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
76334837 Gassa A April 12, 2020, 2:09 p.m. OK D TESTS 27 46 4198400
76348420 iica A April 12, 2020, 2:23 p.m. OK D TESTS 27 46 6144000
76335244 hos.lyric A April 12, 2020, 2:10 p.m. OK D TESTS 27 62 6144000
76443936 ritheshvarma A April 13, 2020, 3:03 a.m. OK GNU C11 TESTS 27 46 819200
76338074 pengin_2000 A April 12, 2020, 2:13 p.m. OK GNU C11 TESTS 27 62 409600
76442611 ritheshvarma A April 13, 2020, 2:32 a.m. OK GNU C11 TESTS 27 62 819200
76344045 physics0523 A April 12, 2020, 2:18 p.m. OK GNU C11 TESTS 27 77 4198400
76334928 Fuyuki A April 12, 2020, 2:09 p.m. OK GNU C++11 TESTS 27 30 921600
76340212 stal_xy23z7b8 A April 12, 2020, 2:15 p.m. OK GNU C++11 TESTS 27 31 0
76373887 OIerwanhong A April 12, 2020, 3:01 p.m. OK GNU C++11 TESTS 27 31 0
76377000 z7z_Eta A April 12, 2020, 3:06 p.m. OK GNU C++11 TESTS 27 31 204800
76334773 Isonan A April 12, 2020, 2:09 p.m. OK GNU C++11 TESTS 27 31 204800
76336800 BigBag A April 12, 2020, 2:11 p.m. OK GNU C++11 TESTS 27 31 409600
76334062 A.K.E.E. A April 12, 2020, 2:07 p.m. OK GNU C++11 TESTS 27 31 409600
76445737 wygz A April 13, 2020, 3:42 a.m. OK GNU C++11 TESTS 27 31 409600
76439299 wasa855 A April 13, 2020, 1:04 a.m. OK GNU C++11 TESTS 27 31 409600
76340774 DarkoLoveRuby A April 12, 2020, 2:15 p.m. OK GNU C++11 TESTS 27 31 614400
76348326 ahoraSoyPeor A April 12, 2020, 2:23 p.m. OK GNU C++14 TESTS 27 46 0
76341461 yan-zp A April 12, 2020, 2:16 p.m. OK GNU C++14 TESTS 27 46 0
76338809 iddilov A April 12, 2020, 2:13 p.m. OK GNU C++14 TESTS 27 46 0
76338674 Motarack A April 12, 2020, 2:13 p.m. OK GNU C++14 TESTS 27 46 0
76337914 kimjihoon A April 12, 2020, 2:12 p.m. OK GNU C++14 TESTS 27 46 0
76337784 WiwiHo A April 12, 2020, 2:12 p.m. OK GNU C++14 TESTS 27 46 0
76349705 marX A April 12, 2020, 2:25 p.m. OK GNU C++14 TESTS 27 46 0
76438163 stark42 A April 13, 2020, 12:29 a.m. OK GNU C++14 TESTS 27 46 0
76395801 fishy15 A April 12, 2020, 3:47 p.m. OK GNU C++14 TESTS 27 46 0
76356548 yashChandnani A April 12, 2020, 2:34 p.m. OK GNU C++14 TESTS 27 46 0
76364270 wleung_bvg A April 12, 2020, 2:45 p.m. OK GNU C++17 TESTS 27 31 921600
76351823 LayCurse A April 12, 2020, 2:27 p.m. OK GNU C++17 TESTS 27 31 2969600
76437663 _andyli A April 13, 2020, 12:15 a.m. OK GNU C++17 TESTS 27 31 5017600
76413685 VaVshchuck A April 12, 2020, 5:44 p.m. OK GNU C++17 TESTS 27 46 0
76439685 chhokmah A April 13, 2020, 1:15 a.m. OK GNU C++17 TESTS 27 46 0
76439207 SSaken A April 13, 2020, 1:01 a.m. OK GNU C++17 TESTS 27 46 0
76438481 Joker_Gamer A April 13, 2020, 12:39 a.m. OK GNU C++17 TESTS 27 46 0
76432373 Nah1d A April 12, 2020, 9:47 p.m. OK GNU C++17 TESTS 27 46 0
76431608 arthurconmy A April 12, 2020, 9:31 p.m. OK GNU C++17 TESTS 27 46 0
76415238 LowR A April 12, 2020, 5:58 p.m. OK GNU C++17 TESTS 27 46 0
76337707 yosupo A April 12, 2020, 2:12 p.m. OK GNU C++17 (64) TESTS 27 30 102400
76394428 timf1089 A April 12, 2020, 3:44 p.m. OK GNU C++17 (64) TESTS 27 31 0
76335993 Bakry_ A April 12, 2020, 2:10 p.m. OK GNU C++17 (64) TESTS 27 31 409600
76335087 balbit A April 12, 2020, 2:09 p.m. OK GNU C++17 (64) TESTS 27 31 409600
76339962 IgorSmirnov A April 12, 2020, 2:14 p.m. OK GNU C++17 (64) TESTS 27 31 409600
76415848 tyler A April 12, 2020, 6:03 p.m. OK GNU C++17 (64) TESTS 27 31 409600
76341255 Diego A April 12, 2020, 2:16 p.m. OK GNU C++17 (64) TESTS 27 31 819200
76335138 Nebuchadnezzar A April 12, 2020, 2:09 p.m. OK GNU C++17 (64) TESTS 27 31 1126400
76368925 madhav_1999 A April 12, 2020, 2:52 p.m. OK GNU C++17 (64) TESTS 27 31 1638400
76352009 Parsa84 A April 12, 2020, 2:28 p.m. OK GNU C++17 (64) TESTS 27 31 1638400
76412431 u33how A April 12, 2020, 5:34 p.m. OK Go TESTS 27 109 819200
76353071 Russell_Emerine A April 12, 2020, 2:29 p.m. OK Haskell TESTS 27 997 22118400
76431595 Lewin A April 12, 2020, 9:31 p.m. OK Java 11 TESTS 27 187 0
76441941 sudhanshu_lucky A April 13, 2020, 2:15 a.m. OK Java 11 TESTS 27 202 0
76339118 adamjamil A April 12, 2020, 2:14 p.m. OK Java 11 TESTS 27 218 0
76338609 Musin A April 12, 2020, 2:13 p.m. OK Java 11 TESTS 27 233 0
76341865 mikit A April 12, 2020, 2:16 p.m. OK Java 11 TESTS 27 233 0
76349562 TheSawan A April 12, 2020, 2:25 p.m. OK Java 11 TESTS 27 234 0
76426797 cribabby A April 12, 2020, 8:08 p.m. OK Java 11 TESTS 27 249 7168000
76413185 zabaldo A April 12, 2020, 5:40 p.m. OK Java 8 TESTS 27 124 0
76341807 aman28rwt A April 12, 2020, 2:16 p.m. OK Java 8 TESTS 27 124 0
76421543 spar5h A April 12, 2020, 7:01 p.m. OK Java 8 TESTS 27 139 0
76335095 qwerty787788 A April 12, 2020, 2:09 p.m. OK Java 8 TESTS 27 140 0
76345209 SecondThread A April 12, 2020, 2:20 p.m. OK Java 8 TESTS 27 140 0
76359942 martins A April 12, 2020, 2:38 p.m. OK Java 8 TESTS 27 140 0
76338807 fetetriste A April 12, 2020, 2:13 p.m. OK Java 8 TESTS 27 140 0
76338799 MagentaCobra A April 12, 2020, 2:13 p.m. OK Java 8 TESTS 27 140 0
76338269 StayAwayFromBitches A April 12, 2020, 2:13 p.m. OK Java 8 TESTS 27 140 0
76361437 Xylenox A April 12, 2020, 2:40 p.m. OK Java 8 TESTS 27 155 0
76340061 Tlatoani A April 12, 2020, 2:14 p.m. OK Kotlin TESTS 27 171 0
76340464 alexey.enkov A April 12, 2020, 2:15 p.m. OK Kotlin TESTS 27 265 5222400
76343663 knightL A April 12, 2020, 2:18 p.m. OK Kotlin TESTS 27 280 6348800
76337189 darnley A April 12, 2020, 2:12 p.m. OK Kotlin TESTS 27 295 7270400
76354197 mban259 A April 12, 2020, 2:30 p.m. OK Mono C# TESTS 27 109 15974400
76350546 keymoon A April 12, 2020, 2:26 p.m. OK Mono C# TESTS 27 155 18022400
76338778 lxhgww A April 12, 2020, 2:13 p.m. OK MS C++ TESTS 27 46 0
76338831 NotEvenWrong A April 12, 2020, 2:13 p.m. OK MS C++ TESTS 27 46 819200
76349177 poopi A April 12, 2020, 2:24 p.m. OK MS C++ TESTS 27 109 0
76339456 P___ A April 12, 2020, 2:14 p.m. OK MS C++ 2017 TESTS 27 46 0
76352400 CrashMaster A April 12, 2020, 2:28 p.m. OK MS C++ 2017 TESTS 27 46 1228800
76335717 pichulia A April 12, 2020, 2:10 p.m. OK MS C++ 2017 TESTS 27 62 1638400
76339027 Petr A April 12, 2020, 2:13 p.m. OK MS C++ 2017 TESTS 27 108 409600
76369390 tarattata1 A April 12, 2020, 2:53 p.m. OK MS C++ 2017 TESTS 27 109 409600
76431518 Sbiengo_sama A April 12, 2020, 9:29 p.m. OK MS C++ 2017 TESTS 27 124 409600
76336382 Friska A April 12, 2020, 2:11 p.m. OK MS C++ 2017 TESTS 27 124 819200
76427026 extremum A April 12, 2020, 8:11 p.m. OK MS C++ 2017 TESTS 27 124 819200
76346579 danilgrig A April 12, 2020, 2:21 p.m. OK MS C++ 2017 TESTS 27 171 819200
76368121 bcollet A April 12, 2020, 2:51 p.m. OK PyPy 2 TESTS 27 171 7577600
76400772 IndianSnakeCharmer A April 12, 2020, 3:58 p.m. OK PyPy 2 TESTS 27 171 8089600
76336492 pa.n.ik A April 12, 2020, 2:11 p.m. OK PyPy 2 TESTS 27 218 9625600
76341261 alexwice A April 12, 2020, 2:16 p.m. OK PyPy 2 TESTS 27 234 6758400
76341355 astrom.lars A April 12, 2020, 2:16 p.m. OK PyPy 2 TESTS 27 467 7577600
76345363 nagiss A April 12, 2020, 2:20 p.m. OK PyPy 3 TESTS 27 202 9932800
76340724 titia A April 12, 2020, 2:15 p.m. OK PyPy 3 TESTS 27 249 10444800
76342939 nagitaosu A April 12, 2020, 2:17 p.m. OK PyPy 3 TESTS 27 264 10649600
76341006 CHelle A April 12, 2020, 2:15 p.m. OK PyPy 3 TESTS 27 264 10752000
76352336 pineriver A April 12, 2020, 2:28 p.m. OK PyPy 3 TESTS 27 264 11264000
76339181 tamato A April 12, 2020, 2:14 p.m. OK PyPy 3 TESTS 27 265 10342400
76341081 malylesio A April 12, 2020, 2:15 p.m. OK PyPy 3 TESTS 27 265 10444800
76339151 conqueror_of_tourist A April 12, 2020, 2:14 p.m. OK PyPy 3 TESTS 27 265 10444800
76334991 neterukun A April 12, 2020, 2:09 p.m. OK PyPy 3 TESTS 27 296 10444800
76348989 slimper A April 12, 2020, 2:24 p.m. OK PyPy 3 TESTS 27 296 10854400
76335239 kabeer27 A April 12, 2020, 2:10 p.m. OK Python 3 TESTS 27 233 8499200
76355588 Kaildls A April 12, 2020, 2:32 p.m. OK Python 3 TESTS 27 249 8704000
76442685 RaDaDiYaMoHiT A April 13, 2020, 2:34 a.m. OK Python 3 TESTS 27 264 8499200
76446119 vatsavpuli A April 13, 2020, 3:49 a.m. OK Python 3 TESTS 27 264 8704000
76342220 old_boo A April 12, 2020, 2:17 p.m. OK Python 3 TESTS 27 265 8704000
76345382 dmikhalin A April 12, 2020, 2:20 p.m. OK Python 3 TESTS 27 312 8396800
76336146 sansen A April 12, 2020, 2:11 p.m. OK Rust TESTS 27 46 1843200
76338017 EbTech A April 12, 2020, 2:12 p.m. OK Rust TESTS 27 46 3174400

remove filters

Back to search problems