Codeforces Round 527 (Div. 3)

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
1092 Codeforces Round 527 (Div. 3) FINISHED False 7200 186679499 Dec. 18, 2018, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3013 ) D2 Great Vova Wall (Version 2) PROGRAMMING data structures implementation 2200

B'Vova 's family is building the Great Vova Wall (named by Vova himself). Vova 's parents, grandparents, grand-grandparents contributed to it. Now it 's totally up to Vova to put the finishing touches. The current state of the wall can be respresented by a sequence a of n integers, with a_i being the height of the i -th part of the wall. Vova can only use 2 x 1 bricks to put in the wall (he has infinite supply of them, however). Vova can put bricks only horizontally on the neighbouring parts of the wall of equal height. It means that if for some i the current height of part i is the same as for part i + 1 , then Vova can put a brick there and thus increase both heights by 1. Obviously, Vova can 't put bricks in such a way that its parts turn out to be off the borders (to the left of part 1 of the wall or to the right of part n of it). Note that Vova can 't put bricks vertically. Vova is a perfectionist, so he considers the wall completed when: Can Vova complete the wall using any amount of bricks (possibly zero)? The first line contains a single integer n ( 1 <= n <= 2 cdot 10^5 ) -- the number of parts in the wall. The second line contains n integers a_1, a_2, ... , a_n ( 1 <= a_i <= 10^9 ) -- the initial heights of the parts of the wall. Print "YES" if Vova can complete the wall using any amount of bricks (possibly zero). Print "NO" otherwise. In the first example Vova can put a brick on parts 2 and 3 to make the wall [2, 2, 2, 2, 5] and then put 3 bricks on parts 1 and 2 and 3 bricks on parts 3 and 4 to make it [5, 5, 5, 5, 5] . In the second example Vova can put no bricks in the wall. In the third example the wall is already complete. '...

Tutorials

Codeforces Round #527 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
54992174 Denor D2 June 2, 2019, 7:36 p.m. OK Delphi TESTS 87 77 1638400 2200
47492133 AHTOH._. D2 Dec. 25, 2018, 12:49 p.m. OK FPC TESTS 87 109 819200 2200
47492194 AHTOH._. D2 Dec. 25, 2018, 12:51 p.m. OK FPC TESTS 87 109 819200 2200
56718277 rainboy D2 July 8, 2019, 3:32 p.m. OK GNU C11 TESTS 87 46 3174400 2200
49617070 geeyiiz D2 Feb. 8, 2019, 6:51 a.m. OK GNU C11 TESTS 87 62 3379200 2200
55115027 Luvwgyx D2 June 5, 2019, 8:15 a.m. OK GNU C++11 TESTS 87 31 819200 2200
47293645 MagicSpark D2 Dec. 20, 2018, 10:48 a.m. OK GNU C++11 TESTS 87 31 1536000 2200
47293702 sjc_fan D2 Dec. 20, 2018, 10:50 a.m. OK GNU C++11 TESTS 87 31 1536000 2200
47394539 sky48 D2 Dec. 23, 2018, 10:21 a.m. OK GNU C++11 TESTS 87 31 1638400 2200
47266024 KbMu D2 Dec. 19, 2018, 2:21 p.m. OK GNU C++11 TESTS 87 31 2355200 2200
47264728 KbMu D2 Dec. 19, 2018, 1:49 p.m. OK GNU C++11 TESTS 87 31 2355200 2200
55116302 HyscereXD D2 June 5, 2019, 8:49 a.m. OK GNU C++11 TESTS 87 31 3174400 2200
47366276 HatsuneMikuo D2 Dec. 22, 2018, 11:38 a.m. OK GNU C++11 TESTS 87 31 3174400 2200
68389334 trueBatty D2 Jan. 8, 2020, 7:50 a.m. OK GNU C++11 TESTS 87 46 512000 2200
57872691 biliwang D2 July 28, 2019, 3:01 a.m. OK GNU C++11 TESTS 87 46 512000 2200
48654498 ReaLNero1 D2 Jan. 21, 2019, 1:35 a.m. OK GNU C++14 TESTS 87 31 1740800 2200
47247560 tokitsukaze D2 Dec. 19, 2018, 6:40 a.m. OK GNU C++14 TESTS 87 31 1740800 2200
47248494 Wrjlinkkkkkk D2 Dec. 19, 2018, 7:05 a.m. OK GNU C++14 TESTS 87 61 614400 2200
55992844 threepebbles D2 June 24, 2019, 8:39 a.m. OK GNU C++14 TESTS 87 61 1638400 2200
47318575 K_K D2 Dec. 21, 2018, 6:09 a.m. OK GNU C++14 TESTS 87 61 2662400 2200
47242014 AK18 D2 Dec. 19, 2018, 2:44 a.m. OK GNU C++14 TESTS 87 61 3481600 2200
58708085 Wrj D2 Aug. 13, 2019, 11:09 a.m. OK GNU C++14 TESTS 87 62 614400 2200
69603385 MahmoudAbdul_Ghaffar D2 Jan. 27, 2020, 8:45 a.m. OK GNU C++14 TESTS 87 62 614400 2200
69521604 menna_tallah D2 Jan. 25, 2020, 1:36 p.m. OK GNU C++14 TESTS 87 62 614400 2200
66011418 yangchaoyi D2 Nov. 30, 2019, 2:46 a.m. OK GNU C++14 TESTS 87 62 614400 2200
47604667 F.J D2 Dec. 28, 2018, 3:37 a.m. OK GNU C++17 TESTS 87 31 614400 2200
47264166 vjudge1 D2 Dec. 19, 2018, 1:36 p.m. OK GNU C++17 TESTS 87 46 614400 2200
47368578 5120160705 D2 Dec. 22, 2018, 12:55 p.m. OK GNU C++17 TESTS 87 46 614400 2200
47321056 Kissheart D2 Dec. 21, 2018, 7:46 a.m. OK GNU C++17 TESTS 87 46 1433600 2200
47232866 IbragiMMamilov D2 Dec. 18, 2018, 6:57 p.m. OK GNU C++17 TESTS 87 61 1024000 2200
47321359 justpwned D2 Dec. 21, 2018, 7:57 a.m. OK GNU C++17 TESTS 87 61 1331200 2200
47240401 duang827 D2 Dec. 19, 2018, 12:57 a.m. OK GNU C++17 TESTS 87 61 3584000 2200
47841971 HanaYukii D2 Jan. 2, 2019, 12:32 p.m. OK GNU C++17 TESTS 87 62 614400 2200
57376322 zjt29363 D2 July 20, 2019, 12:43 p.m. OK GNU C++17 TESTS 87 62 614400 2200
52021935 Edwivv D2 March 30, 2019, 1:08 p.m. OK GNU C++17 TESTS 87 62 614400 2200
47297277 Omar_Morsi D2 Dec. 20, 2018, 12:35 p.m. OK Go TESTS 87 78 5222400 2200
47615528 ledinhbao D2 Dec. 28, 2018, 10:17 a.m. OK Go TESTS 87 171 5324800 2200
47537516 2008061626 D2 Dec. 27, 2018, 3:50 a.m. OK Go TESTS 87 186 5222400 2200
58717408 Ad-007 D2 Aug. 13, 2019, 2:38 p.m. OK Java 8 TESTS 87 124 0 2200
47332394 dyhu083 D2 Dec. 21, 2018, 1:32 p.m. OK Java 8 TESTS 87 124 0 2200
48906189 manish_98 D2 Jan. 24, 2019, 8:36 p.m. OK Java 8 TESTS 87 124 5734400 2200
47275855 amolpratap007 D2 Dec. 19, 2018, 7:16 p.m. OK Java 8 TESTS 87 140 0 2200
47275837 _codophobia_ D2 Dec. 19, 2018, 7:16 p.m. OK Java 8 TESTS 87 140 0 2200
47247476 SrapZark D2 Dec. 19, 2018, 6:38 a.m. OK Java 8 TESTS 87 140 0 2200
48057816 revanthreddy85 D2 Jan. 7, 2019, 1:21 p.m. OK Java 8 TESTS 87 155 0 2200
48562883 Tarun D2 Jan. 19, 2019, 8:10 a.m. OK Java 8 TESTS 87 155 0 2200
48490350 bazinga84 D2 Jan. 17, 2019, 10:33 a.m. OK Java 8 TESTS 87 155 0 2200
47817444 typedef_2000 D2 Jan. 1, 2019, 3:23 p.m. OK Java 8 TESTS 87 155 0 2200
47288748 moss3s D2 Dec. 20, 2018, 7:53 a.m. OK Kotlin TESTS 87 249 18534400 2200
48173637 eki D2 Jan. 10, 2019, 8:17 a.m. OK Mono C# TESTS 87 109 25497600 2200
47291774 omikad D2 Dec. 20, 2018, 9:44 a.m. OK Mono C# TESTS 87 155 32972800 2200
47498613 Anastasiya_Andreevna D2 Dec. 25, 2018, 4:26 p.m. OK Mono C# TESTS 87 467 51302400 2200
50042377 vjudge1 D2 Feb. 17, 2019, 3:08 a.m. OK MS C++ TESTS 87 46 921600 2200
51337052 vjudge5 D2 March 15, 2019, 2:38 p.m. OK MS C++ TESTS 87 46 921600 2200
57632465 vjudge4 D2 July 24, 2019, 9:15 a.m. OK MS C++ TESTS 87 61 921600 2200
47389851 vjudge5 D2 Dec. 23, 2018, 7:25 a.m. OK MS C++ TESTS 87 61 1536000 2200
49945247 vjudge1 D2 Feb. 15, 2019, 11:43 a.m. OK MS C++ TESTS 87 61 1536000 2200
50913378 vjudge2 D2 March 7, 2019, 4:27 a.m. OK MS C++ TESTS 87 61 1536000 2200
48787278 vjudge1 D2 Jan. 23, 2019, 9:35 a.m. OK MS C++ TESTS 87 61 1638400 2200
50042361 vjudge4 D2 Feb. 17, 2019, 3:07 a.m. OK MS C++ TESTS 87 62 921600 2200
47424630 vjudge3 D2 Dec. 23, 2018, 3:07 p.m. OK MS C++ TESTS 87 62 921600 2200
51485481 vjudge3 D2 March 19, 2019, 1:23 p.m. OK MS C++ TESTS 87 62 921600 2200
57745379 Bettledemire_ D2 July 25, 2019, 12:50 p.m. OK MS C++ 2017 TESTS 87 78 1536000 2200
51030347 work_hard. D2 March 8, 2019, 1:31 p.m. OK MS C++ 2017 TESTS 87 93 2252800 2200
47289313 ilyachok D2 Dec. 20, 2018, 8:12 a.m. OK PascalABC.NET TESTS 87 187 86016000 2200
47235342 katalama D2 Dec. 18, 2018, 8:10 p.m. OK PHP TESTS 87 124 47820800 2200
48394467 ssk497 D2 Jan. 14, 2019, 4:58 p.m. OK PyPy 2 TESTS 87 155 14540800 2200
47237407 sallyyao2001 D2 Dec. 18, 2018, 9:30 p.m. OK PyPy 2 TESTS 87 171 14028800 2200
64206222 pajenegod D2 Nov. 4, 2019, 12:56 p.m. OK PyPy 2 TESTS 87 187 16896000 2200
50786333 gatsko D2 March 4, 2019, 1:30 p.m. OK PyPy 2 TESTS 87 202 15360000 2200
47229976 pa.n.ik D2 Dec. 18, 2018, 5:40 p.m. OK PyPy 2 TESTS 87 218 17920000 2200
49394796 265918 D2 Feb. 3, 2019, 11:59 a.m. OK PyPy 3 TESTS 87 265 26624000 2200
47273887 duoc D2 Dec. 19, 2018, 6:11 p.m. OK PyPy 3 TESTS 87 265 26726400 2200
47307103 cgfs10000 D2 Dec. 20, 2018, 5:24 p.m. OK PyPy 3 TESTS 87 280 25190400 2200
47854242 Mr.Inconsistent D2 Jan. 2, 2019, 8:03 p.m. OK PyPy 3 TESTS 87 295 25190400 2200
64162779 Mai-sanBestWaifu D2 Nov. 3, 2019, 3:08 p.m. OK PyPy 3 TESTS 87 296 15155200 2200
47273862 Paixao D2 Dec. 19, 2018, 6:10 p.m. OK PyPy 3 TESTS 87 296 29081600 2200
53533206 yfo D2 April 29, 2019, 10:44 p.m. OK PyPy 3 TESTS 87 311 26726400 2200
52140314 185217 D2 April 1, 2019, 6:21 a.m. OK PyPy 3 TESTS 87 311 26726400 2200
47244311 chandak_vikas D2 Dec. 19, 2018, 4:40 a.m. OK PyPy 3 TESTS 87 389 37683200 2200
47227621 324857679 D2 Dec. 18, 2018, 4:53 p.m. OK Python 2 TESTS 87 342 12083200 2200
47239910 Joker021 D2 Dec. 19, 2018, 12:17 a.m. OK Python 2 TESTS 87 436 11673600 2200
47311402 hitalia D2 Dec. 20, 2018, 8:10 p.m. OK Python 3 TESTS 87 218 17817600 2200
47243727 Sturdy D2 Dec. 19, 2018, 4:13 a.m. OK Python 3 TESTS 87 218 17920000 2200
54740346 whatshisbucket D2 May 28, 2019, 7:33 a.m. OK Python 3 TESTS 87 233 18432000 2200
47231257 c1729 D2 Dec. 18, 2018, 6:12 p.m. OK Python 3 TESTS 87 233 24985600 2200
47829919 julianferres D2 Jan. 2, 2019, 5:40 a.m. OK Python 3 TESTS 87 234 17715200 2200
47289120 masya38ru D2 Dec. 20, 2018, 8:06 a.m. OK Python 3 TESTS 87 264 16896000 2200
47233297 c1729 D2 Dec. 18, 2018, 7:08 p.m. OK Python 3 TESTS 87 265 14131200 2200
47293605 Umm D2 Dec. 20, 2018, 10:46 a.m. OK Python 3 TESTS 87 265 17817600 2200
47291510 Liwj D2 Dec. 20, 2018, 9:33 a.m. OK Python 3 TESTS 87 265 17817600 2200
47231477 c1729 D2 Dec. 18, 2018, 6:19 p.m. OK Python 3 TESTS 87 280 13107200 2200
63532820 sansen D2 Oct. 27, 2019, 7:13 a.m. OK Rust TESTS 87 140 15257600 2200

remove filters

Back to search problems