Codeforces Round 622 (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
1313 Codeforces Round 622 (Div. 2) FINISHED False 7200 154731263 Feb. 23, 2020, 9:05 a.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 10533 ) C1 Skyscrapers (easy version) PROGRAMMING brute force data structures dp greedy 1500

B'This is an easier version of the problem. In this version n <= 1000 The outskirts of the capital are being actively built up in Berland. The company "Kernel Panic" manages the construction of a residential complex of skyscrapers in New Berlskva. All skyscrapers are built along the highway. It is known that the company has already bought n plots along the highway and is preparing to build n skyscrapers, one skyscraper per plot. Architects must consider several requirements when planning a skyscraper. Firstly, since the land on each plot has different properties, each skyscraper has a limit on the largest number of floors it can have. Secondly, according to the design code of the city, it is unacceptable for a skyscraper to simultaneously have higher skyscrapers both to the left and to the right of it. Formally, let 's number the plots from 1 to n . Then if the skyscraper on the i -th plot has a_i floors, it must hold that a_i is at most m_i ( 1 <= a_i <= m_i ). Also there mustn 't be integers j and k such that j < i < k and a_j > a_i < a_k . Plots j and k are not required to be adjacent to i . The company wants the total number of floors in the built skyscrapers to be as large as possible. Help it to choose the number of floors for each skyscraper in an optimal way, i.e. in such a way that all requirements are fulfilled, and among all such construction plans choose any plan with the maximum possible total number of floors. The first line contains a single integer n ( 1 <= q n <= q 1000 ) -- the number of plots. The second line contains the integers m_1, m_2, ldots, m_n ( 1 <= q m_i <= q 10^9 ) -- the limit on the number of floors for every possible number of floors for a skyscraper on each plot. Print n integers a_i -- the number of floors in the plan for each skyscraper, such that all requirements are met, and the total nu'...

Tutorials

Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
71698065 pavelthebest C1 Feb. 23, 2020, 2:45 p.m. OK Clang++17 Diagnostics TESTS 53 46 14438400 1500
71958092 vjudge4 C1 Feb. 27, 2020, 7:58 a.m. OK Clang++17 Diagnostics TESTS 53 77 0 1500
71677946 nanae1914 C1 Feb. 23, 2020, 10:35 a.m. OK D TESTS 53 46 4198400 1500
71680420 ruban C1 Feb. 23, 2020, 10:45 a.m. OK Delphi TESTS 53 46 109056000 1500
71751102 vjudge3 C1 Feb. 24, 2020, 8:11 a.m. OK FPC TESTS 53 31 307200 1500
71749538 vjudge4 C1 Feb. 24, 2020, 7:32 a.m. OK FPC TESTS 53 46 10035200 1500
71845461 romarioputra C1 Feb. 25, 2020, 9:02 a.m. OK GNU C11 TESTS 53 31 0 1500
71683618 pengin_2000 C1 Feb. 23, 2020, 10:58 a.m. OK GNU C11 TESTS 53 31 0 1500
71685721 sand_vey C1 Feb. 23, 2020, 11:04 a.m. OK GNU C11 TESTS 53 31 0 1500
71856945 YOK C1 Feb. 25, 2020, 12:33 p.m. OK GNU C11 TESTS 53 31 409600 1500
71739894 18120581074 C1 Feb. 24, 2020, 2:38 a.m. OK GNU C11 TESTS 53 46 0 1500
71678471 755352046 C1 Feb. 23, 2020, 10:37 a.m. OK GNU C11 TESTS 53 46 0 1500
71664663 jschr C1 Feb. 23, 2020, 9:45 a.m. OK GNU C11 TESTS 53 46 2048000 1500
71928375 coder370 C1 Feb. 26, 2020, 4:53 p.m. OK GNU C++11 TESTS 53 31 0 1500
71921100 LiuYu_penguin C1 Feb. 26, 2020, 2:48 p.m. OK GNU C++11 TESTS 53 31 0 1500
71918823 coder370 C1 Feb. 26, 2020, 2:07 p.m. OK GNU C++11 TESTS 53 31 0 1500
71948373 SevenDawns C1 Feb. 27, 2020, 3:28 a.m. OK GNU C++11 TESTS 53 31 0 1500
71944959 jooncco C1 Feb. 27, 2020, 1:02 a.m. OK GNU C++11 TESTS 53 31 0 1500
71932069 Animeshka C1 Feb. 26, 2020, 6:03 p.m. OK GNU C++11 TESTS 53 31 0 1500
71930084 SIYUELIU C1 Feb. 26, 2020, 5:24 p.m. OK GNU C++11 TESTS 53 31 0 1500
71965208 dragon_eye C1 Feb. 27, 2020, 10:22 a.m. OK GNU C++11 TESTS 53 31 0 1500
71953834 zhoufangyuanPT C1 Feb. 27, 2020, 6:19 a.m. OK GNU C++11 TESTS 53 31 0 1500
71948564 Dr.odd C1 Feb. 27, 2020, 3:37 a.m. OK GNU C++11 TESTS 53 31 0 1500
71667766 TheMightGuy C1 Feb. 23, 2020, 9:56 a.m. OK GNU C++14 TESTS 53 30 0 1500
71665737 fastboot C1 Feb. 23, 2020, 9:49 a.m. OK GNU C++14 TESTS 53 30 0 1500
71664683 ShanOvery C1 Feb. 23, 2020, 9:45 a.m. OK GNU C++14 TESTS 53 30 0 1500
71767640 Cheeze C1 Feb. 24, 2020, 1:59 p.m. OK GNU C++14 TESTS 53 30 0 1500
71690378 mikujsr C1 Feb. 23, 2020, 12:25 p.m. OK GNU C++14 TESTS 53 30 0 1500
71740070 doublevgp C1 Feb. 24, 2020, 2:46 a.m. OK GNU C++14 TESTS 53 30 0 1500
71759895 CZAR28 C1 Feb. 24, 2020, 11:29 a.m. OK GNU C++14 TESTS 53 30 0 1500
71687012 Cubatomic C1 Feb. 23, 2020, 11:35 a.m. OK GNU C++14 TESTS 53 30 0 1500
71676812 goatzyq C1 Feb. 23, 2020, 10:30 a.m. OK GNU C++14 TESTS 53 30 0 1500
71674274 mohanjnv1 C1 Feb. 23, 2020, 10:20 a.m. OK GNU C++14 TESTS 53 30 0 1500
71671668 Tangent617 C1 Feb. 23, 2020, 10:11 a.m. OK GNU C++17 TESTS 53 15 0 1500
71660876 HNO2 C1 Feb. 23, 2020, 9:31 a.m. OK GNU C++17 TESTS 53 15 24064000 1500
71742941 dreamoon_love_AA C1 Feb. 24, 2020, 4:27 a.m. OK GNU C++17 TESTS 53 15 24064000 1500
71691955 0d1n C1 Feb. 23, 2020, 12:52 p.m. OK GNU C++17 TESTS 53 30 0 1500
71748078 isfs C1 Feb. 24, 2020, 6:56 a.m. OK GNU C++17 TESTS 53 30 0 1500
71759179 _Cardinal C1 Feb. 24, 2020, 11:12 a.m. OK GNU C++17 TESTS 53 30 0 1500
71920040 chota C1 Feb. 26, 2020, 2:29 p.m. OK GNU C++17 TESTS 53 30 0 1500
71969269 defolaut C1 Feb. 27, 2020, 11:45 a.m. OK GNU C++17 TESTS 53 30 0 1500
71687015 muNick C1 Feb. 23, 2020, 11:35 a.m. OK GNU C++17 TESTS 53 30 0 1500
71686996 zhaofangfang C1 Feb. 23, 2020, 11:34 a.m. OK GNU C++17 TESTS 53 30 0 1500
71693428 synapse C1 Feb. 23, 2020, 1:18 p.m. OK Go TESTS 53 46 0 1500
71692215 Jughead C1 Feb. 23, 2020, 12:56 p.m. OK Go TESTS 53 46 0 1500
71665807 u1s1reallycai C1 Feb. 23, 2020, 9:49 a.m. OK Go TESTS 53 46 0 1500
71682861 snow_bear_328 C1 Feb. 23, 2020, 10:55 a.m. OK Go TESTS 53 46 14233600 1500
71680787 ontake C1 Feb. 23, 2020, 10:47 a.m. OK Go TESTS 53 93 20787200 1500
71682250 Musin C1 Feb. 23, 2020, 10:52 a.m. OK Java 11 TESTS 53 202 0 1500
71668957 Witless_Deer C1 Feb. 23, 2020, 10:01 a.m. OK Java 11 TESTS 53 217 0 1500
71658302 ZeyadKhattab C1 Feb. 23, 2020, 9:21 a.m. OK Java 11 TESTS 53 217 0 1500
71670866 nick_301 C1 Feb. 23, 2020, 10:08 a.m. OK Java 11 TESTS 53 218 0 1500
71661822 pikapika00 C1 Feb. 23, 2020, 9:34 a.m. OK Java 11 TESTS 53 218 0 1500
71660566 lightseba C1 Feb. 23, 2020, 9:30 a.m. OK Java 11 TESTS 53 218 0 1500
71659009 TheSawan C1 Feb. 23, 2020, 9:24 a.m. OK Java 11 TESTS 53 218 0 1500
71696431 BaiYuan C1 Feb. 23, 2020, 2:14 p.m. OK Java 11 TESTS 53 234 307200 1500
71902092 harshita.nit C1 Feb. 26, 2020, 8:21 a.m. OK Java 11 TESTS 53 249 307200 1500
71663248 rahul_roy C1 Feb. 23, 2020, 9:40 a.m. OK Java 11 TESTS 53 265 0 1500
71755881 1u_my_light C1 Feb. 24, 2020, 9:58 a.m. OK Java 8 TESTS 53 109 0 1500
71918742 Faizan C1 Feb. 26, 2020, 2:06 p.m. OK Java 8 TESTS 53 124 0 1500
71898960 black_demon C1 Feb. 26, 2020, 6:56 a.m. OK Java 8 TESTS 53 124 0 1500
71860207 _apurv_ C1 Feb. 25, 2020, 1:23 p.m. OK Java 8 TESTS 53 124 0 1500
71847357 alibaba C1 Feb. 25, 2020, 9:40 a.m. OK Java 8 TESTS 53 124 0 1500
71823576 MagentaCobra C1 Feb. 24, 2020, 9 p.m. OK Java 8 TESTS 53 124 0 1500
71748859 KharYusuf C1 Feb. 24, 2020, 7:15 a.m. OK Java 8 TESTS 53 124 0 1500
71740198 kpark C1 Feb. 24, 2020, 2:51 a.m. OK Java 8 TESTS 53 124 0 1500
71737239 bluesky111 C1 Feb. 24, 2020, 12:13 a.m. OK Java 8 TESTS 53 124 0 1500
71735103 polyakoff C1 Feb. 23, 2020, 10:14 p.m. OK Java 8 TESTS 53 124 0 1500
71678391 watarimaycry2 C1 Feb. 23, 2020, 10:37 a.m. OK JavaScript TESTS 53 342 2457600 1500
71686994 SlavaG C1 Feb. 23, 2020, 11:34 a.m. OK Kotlin TESTS 53 155 1126400 1500
71697604 strelas C1 Feb. 23, 2020, 2:37 p.m. OK Kotlin TESTS 53 156 716800 1500
71697068 strelas C1 Feb. 23, 2020, 2:26 p.m. OK Kotlin TESTS 53 156 716800 1500
71697506 strelas C1 Feb. 23, 2020, 2:34 p.m. OK Kotlin TESTS 53 171 716800 1500
71740043 szfck C1 Feb. 24, 2020, 2:45 a.m. OK Kotlin TESTS 53 171 819200 1500
71666309 koboshi C1 Feb. 23, 2020, 9:51 a.m. OK Kotlin TESTS 53 186 716800 1500
71675582 seirion C1 Feb. 23, 2020, 10:25 a.m. OK Kotlin TESTS 53 186 819200 1500
71701018 scnucjh C1 Feb. 23, 2020, 3:41 p.m. OK Kotlin TESTS 53 187 716800 1500
71665867 fatwizard2020 C1 Feb. 23, 2020, 9:49 a.m. OK Kotlin TESTS 53 187 1536000 1500
71830493 Spheniscine C1 Feb. 25, 2020, 2:28 a.m. OK Kotlin TESTS 53 187 1740800 1500
71669080 Anastasiya_Andreevna C1 Feb. 23, 2020, 10:01 a.m. OK Mono C# TESTS 53 62 204800 1500
71680861 sergmel C1 Feb. 23, 2020, 10:47 a.m. OK Mono C# TESTS 53 77 1843200 1500
71665099 eSeF_ C1 Feb. 23, 2020, 9:46 a.m. OK Mono C# TESTS 53 77 3174400 1500
71672140 riantkb C1 Feb. 23, 2020, 10:12 a.m. OK Mono C# TESTS 53 77 3993600 1500
71676398 mban259 C1 Feb. 23, 2020, 10:28 a.m. OK Mono C# TESTS 53 78 6656000 1500
71672425 DM7PvTyc C1 Feb. 23, 2020, 10:13 a.m. OK Mono C# TESTS 53 78 6860800 1500
71682966 Yidaibajun C1 Feb. 23, 2020, 10:55 a.m. OK MS C++ TESTS 53 30 0 1500
71737006 vjudge4 C1 Feb. 24, 2020, midnight OK MS C++ TESTS 53 31 0 1500
71911695 vjudge1 C1 Feb. 26, 2020, 11:58 a.m. OK MS C++ TESTS 53 31 0 1500
71904102 vjudge3 C1 Feb. 26, 2020, 9:15 a.m. OK MS C++ TESTS 53 31 0 1500
71698878 vjudge5 C1 Feb. 23, 2020, 3 p.m. OK MS C++ TESTS 53 31 8089600 1500
71666229 songhaoran C1 Feb. 23, 2020, 9:50 a.m. OK MS C++ TESTS 53 31 24064000 1500
71695430 tarattata1 C1 Feb. 23, 2020, 1:55 p.m. OK MS C++ TESTS 53 46 0 1500
71681250 frigobar C1 Feb. 23, 2020, 10:49 a.m. OK MS C++ TESTS 53 46 0 1500
71673019 VagrantAC C1 Feb. 23, 2020, 10:15 a.m. OK MS C++ TESTS 53 46 4812800 1500
71851883 vjudge5 C1 Feb. 25, 2020, 11:11 a.m. OK MS C++ TESTS 53 46 8089600 1500
71663121 anylonger C1 Feb. 23, 2020, 9:39 a.m. OK MS C++ 2017 TESTS 53 31 0 1500
71900744 vjudge5 C1 Feb. 26, 2020, 7:44 a.m. OK MS C++ 2017 TESTS 53 31 0 1500
71738927 Huangzzzzz C1 Feb. 24, 2020, 1:49 a.m. OK MS C++ 2017 TESTS 53 31 0 1500
71738904 Huangzzzzz C1 Feb. 24, 2020, 1:47 a.m. OK MS C++ 2017 TESTS 53 31 0 1500
71687229 Gravekper C1 Feb. 23, 2020, 11:36 a.m. OK MS C++ 2017 TESTS 53 31 0 1500
71670896 lindlind C1 Feb. 23, 2020, 10:08 a.m. OK MS C++ 2017 TESTS 53 31 0 1500
71670063 CrashMaster C1 Feb. 23, 2020, 10:05 a.m. OK MS C++ 2017 TESTS 53 31 0 1500
71669791 BpeMeHHa91_TryDHocTb C1 Feb. 23, 2020, 10:04 a.m. OK MS C++ 2017 TESTS 53 31 0 1500
71847832 jdb0ss C1 Feb. 25, 2020, 9:50 a.m. OK MS C++ 2017 TESTS 53 31 307200 1500
71858056 vjudge4 C1 Feb. 25, 2020, 12:51 p.m. OK MS C++ 2017 TESTS 53 31 307200 1500
71680574 sanori C1 Feb. 23, 2020, 10:46 a.m. OK Node.js TESTS 53 187 4710400 1500
71663870 rsFalse C1 Feb. 23, 2020, 9:42 a.m. OK Perl TESTS 53 171 409600 1500
71665633 Mukundan314 C1 Feb. 23, 2020, 9:48 a.m. OK PyPy 2 TESTS 53 187 1638400 1500
71669063 Acuurate C1 Feb. 23, 2020, 10:01 a.m. OK PyPy 2 TESTS 53 202 1228800 1500
71671320 raj1307 C1 Feb. 23, 2020, 10:09 a.m. OK PyPy 2 TESTS 53 202 1433600 1500
71663010 iamprayush C1 Feb. 23, 2020, 9:39 a.m. OK PyPy 2 TESTS 53 311 9113600 1500
71739475 thongnguyen050999 C1 Feb. 24, 2020, 2:19 a.m. OK PyPy 3 TESTS 53 170 1945600 1500
71739357 thongnguyen050999 C1 Feb. 24, 2020, 2:12 a.m. OK PyPy 3 TESTS 53 186 1945600 1500
71736515 wo0mbat C1 Feb. 23, 2020, 11:30 p.m. OK PyPy 3 TESTS 53 187 1945600 1500
71735260 codehi9020 C1 Feb. 23, 2020, 10:21 p.m. OK PyPy 3 TESTS 53 187 2867200 1500
71687234 jabhi_18 C1 Feb. 23, 2020, 11:36 a.m. OK PyPy 3 TESTS 53 187 3174400 1500
71742606 KnightKnight C1 Feb. 24, 2020, 4:16 a.m. OK PyPy 3 TESTS 53 187 3379200 1500
71682397 GuillaumeK C1 Feb. 23, 2020, 10:53 a.m. OK PyPy 3 TESTS 53 187 4505600 1500
71679685 bhy_ahmed C1 Feb. 23, 2020, 10:42 a.m. OK PyPy 3 TESTS 53 187 7065600 1500
71676883 snape_here C1 Feb. 23, 2020, 10:30 a.m. OK PyPy 3 TESTS 53 202 2150400 1500
71663713 matteodelabre C1 Feb. 23, 2020, 9:41 a.m. OK PyPy 3 TESTS 53 202 2662400 1500
71788573 takakin C1 Feb. 24, 2020, 3:17 p.m. OK Python 3 TESTS 53 124 307200 1500
71662319 Aphanasiy C1 Feb. 23, 2020, 9:36 a.m. OK Python 3 TESTS 53 124 307200 1500
71756640 _nobody_ C1 Feb. 24, 2020, 10:15 a.m. OK Python 3 TESTS 53 140 614400 1500
71813117 river_man C1 Feb. 24, 2020, 5:13 p.m. OK Python 3 TESTS 53 187 409600 1500
71692009 ryo_n C1 Feb. 23, 2020, 12:52 p.m. OK Python 3 TESTS 53 358 307200 1500
71685497 queencurry C1 Feb. 23, 2020, 11:04 a.m. OK Python 3 TESTS 53 358 1126400 1500
71662148 Shee11 C1 Feb. 23, 2020, 9:36 a.m. OK Python 3 TESTS 53 421 307200 1500
71688126 nrkt C1 Feb. 23, 2020, 11:48 a.m. OK Python 3 TESTS 53 467 409600 1500
71681115 skylordants C1 Feb. 23, 2020, 10:48 a.m. OK Python 3 TESTS 53 514 307200 1500
71670703 huanghf C1 Feb. 23, 2020, 10:07 a.m. OK Python 3 TESTS 53 530 4710400 1500
71676366 simanman C1 Feb. 23, 2020, 10:28 a.m. OK Ruby TESTS 53 234 0 1500
71665857 terraformer C1 Feb. 23, 2020, 9:49 a.m. OK Rust TESTS 53 31 0 1500
71698208 toterpinguin C1 Feb. 23, 2020, 2:48 p.m. OK Rust TESTS 53 31 102400 1500
71672941 sansen C1 Feb. 23, 2020, 10:15 a.m. OK Rust TESTS 53 46 102400 1500
71664268 togatoga C1 Feb. 23, 2020, 9:43 a.m. OK Rust TESTS 53 46 204800 1500
71675155 akiradeveloper C1 Feb. 23, 2020, 10:24 a.m. OK Rust TESTS 53 46 716800 1500
71678116 myomyomyo C1 Feb. 23, 2020, 10:36 a.m. OK Rust TESTS 53 46 8601600 1500
71951215 reldan C1 Feb. 27, 2020, 5:08 a.m. OK Scala TESTS 53 904 52121600 1500

remove filters

Back to search problems