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 | 192381923 | Dec. 18, 2018, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 4949 ) | D1 | Great Vova Wall (Version 1) | PROGRAMMING | greedy implementation math | 2100 |
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 horizontally on the neighboring 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). The next paragraph is specific to the version 1 of the problem. Vova can also put bricks vertically. That means increasing height of any part of the wall by 2. 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 a brick vertically on part 3 to make the wall [4, 5, 5] , then horizontally on parts 2 and 3 to make it [4, 6, 6] and then vertically on part 1 to make it [6, 6, 6] . In '... |
Codeforces Round #527 (Div. 3) Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
54991902 | Denor | D1 | June 2, 2019, 7:22 p.m. | OK | Delphi | TESTS | 41 | 77 | 819200 | 2100 | |
51609832 | chaorenhaha | D1 | March 21, 2019, 9:41 a.m. | OK | FPC | TESTS | 41 | 62 | 2252800 | 2100 | |
47455895 | AHTOH._. | D1 | Dec. 24, 2018, 12:32 p.m. | OK | FPC | TESTS | 41 | 140 | 819200 | 2100 | |
49616785 | geeyiiz | D1 | Feb. 8, 2019, 6:41 a.m. | OK | GNU C11 | TESTS | 41 | 46 | 0 | 2100 | |
47333811 | Halian | D1 | Dec. 21, 2018, 2:10 p.m. | OK | GNU C11 | TESTS | 41 | 46 | 3993600 | 2100 | |
47239949 | freyes | D1 | Dec. 19, 2018, 12:20 a.m. | OK | GNU C11 | TESTS | 41 | 61 | 0 | 2100 | |
56720035 | rainboy | D1 | July 8, 2019, 4:21 p.m. | OK | GNU C11 | TESTS | 41 | 62 | 1638400 | 2100 | |
47227702 | Karlis | D1 | Dec. 18, 2018, 4:54 p.m. | OK | GNU C++11 | TESTS | 41 | 31 | 409600 | 2100 | |
48973609 | hzy9819 | D1 | Jan. 26, 2019, 8:54 a.m. | OK | GNU C++11 | TESTS | 41 | 31 | 819200 | 2100 | |
47240167 | LJC00118 | D1 | Dec. 19, 2018, 12:40 a.m. | OK | GNU C++11 | TESTS | 41 | 31 | 819200 | 2100 | |
55114862 | Luvwgyx | D1 | June 5, 2019, 8:11 a.m. | OK | GNU C++11 | TESTS | 41 | 31 | 819200 | 2100 | |
47232749 | A001A001A001 | D1 | Dec. 18, 2018, 6:53 p.m. | OK | GNU C++11 | TESTS | 41 | 31 | 1228800 | 2100 | |
47354201 | high-cold | D1 | Dec. 22, 2018, 5:16 a.m. | OK | GNU C++11 | TESTS | 41 | 31 | 1433600 | 2100 | |
47233731 | Zechariah_2001 | D1 | Dec. 18, 2018, 7:20 p.m. | OK | GNU C++11 | TESTS | 41 | 31 | 1638400 | 2100 | |
47302731 | sky48 | D1 | Dec. 20, 2018, 3:02 p.m. | OK | GNU C++11 | TESTS | 41 | 31 | 1638400 | 2100 | |
55106135 | JiangZhuoyu | D1 | June 5, 2019, 2:45 a.m. | OK | GNU C++11 | TESTS | 41 | 31 | 1740800 | 2100 | |
47268455 | KbMu | D1 | Dec. 19, 2018, 3:27 p.m. | OK | GNU C++11 | TESTS | 41 | 31 | 1843200 | 2100 | |
47226427 | Gotland | D1 | Dec. 18, 2018, 4:37 p.m. | OK | GNU C++14 | TESTS | 41 | 31 | 1740800 | 2100 | |
47242538 | conchoda | D1 | Dec. 19, 2018, 3:11 a.m. | OK | GNU C++14 | TESTS | 41 | 31 | 1740800 | 2100 | |
47247513 | tokitsukaze | D1 | Dec. 19, 2018, 6:39 a.m. | OK | GNU C++14 | TESTS | 41 | 31 | 1740800 | 2100 | |
48654502 | ReaLNero1 | D1 | Jan. 21, 2019, 1:35 a.m. | OK | GNU C++14 | TESTS | 41 | 31 | 1740800 | 2100 | |
47853868 | Mr.Inconsistent | D1 | Jan. 2, 2019, 7:44 p.m. | OK | GNU C++14 | TESTS | 41 | 61 | 512000 | 2100 | |
55993532 | threepebbles | D1 | June 24, 2019, 9 a.m. | OK | GNU C++14 | TESTS | 41 | 61 | 819200 | 2100 | |
47362717 | d_shiladityab24 | D1 | Dec. 22, 2018, 9:39 a.m. | OK | GNU C++14 | TESTS | 41 | 61 | 1843200 | 2100 | |
47275480 | ashwathbhat | D1 | Dec. 19, 2018, 7:02 p.m. | OK | GNU C++14 | TESTS | 41 | 61 | 1843200 | 2100 | |
47893563 | Rabbittank | D1 | Jan. 4, 2019, 8:39 a.m. | OK | GNU C++14 | TESTS | 41 | 62 | 0 | 2100 | |
53966021 | Harsh424jan | D1 | May 10, 2019, 5:03 p.m. | OK | GNU C++14 | TESTS | 41 | 62 | 204800 | 2100 | |
47283995 | nong | D1 | Dec. 20, 2018, 4:33 a.m. | OK | GNU C++17 | TESTS | 41 | 46 | 0 | 2100 | |
47254021 | 2018329621146 | D1 | Dec. 19, 2018, 9:36 a.m. | OK | GNU C++17 | TESTS | 41 | 46 | 512000 | 2100 | |
49543129 | pojarnaia_mashina | D1 | Feb. 6, 2019, 7:45 p.m. | OK | GNU C++17 | TESTS | 41 | 46 | 1331200 | 2100 | |
48593809 | vjudge4 | D1 | Jan. 20, 2019, 5:02 a.m. | OK | GNU C++17 | TESTS | 41 | 46 | 1331200 | 2100 | |
48603274 | NaVi.s1mple | D1 | Jan. 20, 2019, 9:25 a.m. | OK | GNU C++17 | TESTS | 41 | 46 | 1536000 | 2100 | |
47373180 | nik1995 | D1 | Dec. 22, 2018, 3:29 p.m. | OK | GNU C++17 | TESTS | 41 | 46 | 2150400 | 2100 | |
51437850 | code_struck | D1 | March 18, 2019, 7:54 a.m. | OK | GNU C++17 | TESTS | 41 | 61 | 614400 | 2100 | |
47319653 | Kissheart | D1 | Dec. 21, 2018, 6:51 a.m. | OK | GNU C++17 | TESTS | 41 | 61 | 1331200 | 2100 | |
47255667 | Lrztxdy | D1 | Dec. 19, 2018, 10:19 a.m. | OK | GNU C++17 | TESTS | 41 | 61 | 1536000 | 2100 | |
47485585 | blaction | D1 | Dec. 25, 2018, 8:26 a.m. | OK | GNU C++17 | TESTS | 41 | 61 | 1945600 | 2100 | |
47296140 | Omar_Morsi | D1 | Dec. 20, 2018, 12:03 p.m. | OK | Go | TESTS | 41 | 77 | 5222400 | 2100 | |
47515803 | ledinhbao | D1 | Dec. 26, 2018, 9:48 a.m. | OK | Go | TESTS | 41 | 186 | 5222400 | 2100 | |
47281953 | 2008061626 | D1 | Dec. 20, 2018, 2:17 a.m. | OK | Go | TESTS | 41 | 202 | 4505600 | 2100 | |
58710304 | Ad-007 | D1 | Aug. 13, 2019, 11:58 a.m. | OK | Java 8 | TESTS | 41 | 124 | 0 | 2100 | |
48489839 | bazinga84 | D1 | Jan. 17, 2019, 10:16 a.m. | OK | Java 8 | TESTS | 41 | 124 | 0 | 2100 | |
48164436 | Andres1 | D1 | Jan. 9, 2019, 10:29 p.m. | OK | Java 8 | TESTS | 41 | 124 | 0 | 2100 | |
47544054 | cotyeyddca1 | D1 | Dec. 27, 2018, 8:54 a.m. | OK | Java 8 | TESTS | 41 | 124 | 0 | 2100 | |
47327988 | dyhu083 | D1 | Dec. 21, 2018, 11:25 a.m. | OK | Java 8 | TESTS | 41 | 124 | 0 | 2100 | |
47229074 | sarthakmanna | D1 | Dec. 18, 2018, 5:19 p.m. | OK | Java 8 | TESTS | 41 | 124 | 0 | 2100 | |
48904276 | manish_98 | D1 | Jan. 24, 2019, 7:34 p.m. | OK | Java 8 | TESTS | 41 | 124 | 5734400 | 2100 | |
47799734 | Romok007 | D1 | Dec. 31, 2018, 8:51 p.m. | OK | Java 8 | TESTS | 41 | 140 | 0 | 2100 | |
48490017 | bazinga84 | D1 | Jan. 17, 2019, 10:22 a.m. | OK | Java 8 | TESTS | 41 | 140 | 0 | 2100 | |
48057344 | revanthreddy85 | D1 | Jan. 7, 2019, 1:05 p.m. | OK | Java 8 | TESTS | 41 | 140 | 0 | 2100 | |
47288804 | moss3s | D1 | Dec. 20, 2018, 7:55 a.m. | OK | Kotlin | TESTS | 41 | 234 | 18534400 | 2100 | |
47288935 | Coder_D | D1 | Dec. 20, 2018, 7:59 a.m. | OK | Mono C# | TESTS | 41 | 109 | 27136000 | 2100 | |
48179251 | eki | D1 | Jan. 10, 2019, 11:35 a.m. | OK | Mono C# | TESTS | 41 | 124 | 25600000 | 2100 | |
47442852 | vanaja.m | D1 | Dec. 24, 2018, 3:34 a.m. | OK | Mono C# | TESTS | 41 | 124 | 28467200 | 2100 | |
47431030 | sanek_2bas | D1 | Dec. 23, 2018, 4:15 p.m. | OK | Mono C# | TESTS | 41 | 140 | 26316800 | 2100 | |
47599402 | Anastasiya_Andreevna | D1 | Dec. 27, 2018, 8:46 p.m. | OK | Mono C# | TESTS | 41 | 155 | 27136000 | 2100 | |
47387592 | vjudge3 | D1 | Dec. 23, 2018, 6:14 a.m. | OK | MS C++ | TESTS | 41 | 46 | 819200 | 2100 | |
53473375 | vjudge3 | D1 | April 28, 2019, 1:59 p.m. | OK | MS C++ | TESTS | 41 | 46 | 819200 | 2100 | |
47389640 | vjudge5 | D1 | Dec. 23, 2018, 7:18 a.m. | OK | MS C++ | TESTS | 41 | 46 | 819200 | 2100 | |
47300673 | vjudge4 | D1 | Dec. 20, 2018, 2:03 p.m. | OK | MS C++ | TESTS | 41 | 46 | 921600 | 2100 | |
48519909 | vjudge4 | D1 | Jan. 18, 2019, 6:15 a.m. | OK | MS C++ | TESTS | 41 | 46 | 921600 | 2100 | |
49944451 | vjudge4 | D1 | Feb. 15, 2019, 11:24 a.m. | OK | MS C++ | TESTS | 41 | 46 | 921600 | 2100 | |
48778649 | vjudge5 | D1 | Jan. 23, 2019, 5:47 a.m. | OK | MS C++ | TESTS | 41 | 46 | 1638400 | 2100 | |
50872753 | vjudge2 | D1 | March 6, 2019, 3:37 a.m. | OK | MS C++ | TESTS | 41 | 46 | 1638400 | 2100 | |
47390311 | vjudge5 | D1 | Dec. 23, 2018, 7:40 a.m. | OK | MS C++ | TESTS | 41 | 61 | 819200 | 2100 | |
47389885 | vjudge1 | D1 | Dec. 23, 2018, 7:26 a.m. | OK | MS C++ | TESTS | 41 | 61 | 819200 | 2100 | |
51032289 | work_hard. | D1 | March 8, 2019, 1:36 p.m. | OK | MS C++ 2017 | TESTS | 41 | 78 | 1536000 | 2100 | |
50257343 | matizzat | D1 | Feb. 20, 2019, 8:31 p.m. | OK | MS C++ 2017 | TESTS | 41 | 202 | 2457600 | 2100 | |
49946321 | vjudge4 | D1 | Feb. 15, 2019, 12:13 p.m. | OK | Node.js | TESTS | 41 | 264 | 26624000 | 2100 | |
47290272 | ilyachok | D1 | Dec. 20, 2018, 8:46 a.m. | OK | PascalABC.NET | TESTS | 41 | 171 | 86016000 | 2100 | |
47233169 | katalama | D1 | Dec. 18, 2018, 7:04 p.m. | OK | PHP | TESTS | 41 | 108 | 28979200 | 2100 | |
47228675 | noob77777 | D1 | Dec. 18, 2018, 5:11 p.m. | OK | PyPy 2 | TESTS | 41 | 155 | 14336000 | 2100 | |
48393737 | ssk497 | D1 | Jan. 14, 2019, 4:37 p.m. | OK | PyPy 2 | TESTS | 41 | 171 | 13824000 | 2100 | |
47231654 | pa.n.ik | D1 | Dec. 18, 2018, 6:24 p.m. | OK | PyPy 2 | TESTS | 41 | 217 | 16384000 | 2100 | |
50785391 | gatsko | D1 | March 4, 2019, 1:07 p.m. | OK | PyPy 2 | TESTS | 41 | 233 | 15462400 | 2100 | |
64263217 | pajenegod | D1 | Nov. 4, 2019, 5:12 p.m. | OK | PyPy 2 | TESTS | 41 | 233 | 16896000 | 2100 | |
54431052 | thekushalghosh | D1 | May 20, 2019, 11:22 p.m. | OK | PyPy 3 | TESTS | 41 | 264 | 26828800 | 2100 | |
47853816 | Mr.Inconsistent | D1 | Jan. 2, 2019, 7:41 p.m. | OK | PyPy 3 | TESTS | 41 | 280 | 25292800 | 2100 | |
47284422 | yellowflash | D1 | Dec. 20, 2018, 5 a.m. | OK | PyPy 3 | TESTS | 41 | 280 | 26624000 | 2100 | |
47246481 | Evil__Coder | D1 | Dec. 19, 2018, 6:07 a.m. | OK | PyPy 3 | TESTS | 41 | 280 | 26624000 | 2100 | |
52140331 | 185217 | D1 | April 1, 2019, 6:21 a.m. | OK | PyPy 3 | TESTS | 41 | 280 | 26726400 | 2100 | |
49394717 | 265918 | D1 | Feb. 3, 2019, 11:56 a.m. | OK | PyPy 3 | TESTS | 41 | 280 | 26726400 | 2100 | |
47777013 | kinte | D1 | Dec. 31, 2018, 4:58 a.m. | OK | PyPy 3 | TESTS | 41 | 280 | 26726400 | 2100 | |
47609065 | tiantian5 | D1 | Dec. 28, 2018, 7:05 a.m. | OK | PyPy 3 | TESTS | 41 | 280 | 26726400 | 2100 | |
47500948 | Praxis | D1 | Dec. 25, 2018, 5:52 p.m. | OK | PyPy 3 | TESTS | 41 | 280 | 26726400 | 2100 | |
47266825 | duoc | D1 | Dec. 19, 2018, 2:41 p.m. | OK | PyPy 3 | TESTS | 41 | 280 | 26726400 | 2100 | |
47230565 | 324857679 | D1 | Dec. 18, 2018, 5:55 p.m. | OK | Python 2 | TESTS | 41 | 327 | 11776000 | 2100 | |
47232029 | noob77777 | D1 | Dec. 18, 2018, 6:33 p.m. | OK | Python 2 | TESTS | 41 | 358 | 14745600 | 2100 | |
47238827 | c1729 | D1 | Dec. 18, 2018, 10:59 p.m. | OK | Python 3 | TESTS | 41 | 233 | 13926400 | 2100 | |
47310478 | hitalia | D1 | Dec. 20, 2018, 7:26 p.m. | OK | Python 3 | TESTS | 41 | 233 | 17715200 | 2100 | |
48459530 | kabeer27 | D1 | Jan. 16, 2019, 2 p.m. | OK | Python 3 | TESTS | 41 | 233 | 18124800 | 2100 | |
47238914 | c1729 | D1 | Dec. 18, 2018, 11:05 p.m. | OK | Python 3 | TESTS | 41 | 234 | 12800000 | 2100 | |
47227352 | DICS | D1 | Dec. 18, 2018, 4:49 p.m. | OK | Python 3 | TESTS | 41 | 249 | 13926400 | 2100 | |
48057984 | duynm619 | D1 | Jan. 7, 2019, 1:28 p.m. | OK | Python 3 | TESTS | 41 | 249 | 14745600 | 2100 | |
48376230 | Nega_tiv3 | D1 | Jan. 14, 2019, 7:43 a.m. | OK | Python 3 | TESTS | 41 | 249 | 17612800 | 2100 | |
47309144 | Ooops_no | D1 | Dec. 20, 2018, 6:35 p.m. | OK | Python 3 | TESTS | 41 | 249 | 17715200 | 2100 | |
47829062 | julianferres | D1 | Jan. 2, 2019, 4:41 a.m. | OK | Python 3 | TESTS | 41 | 264 | 12800000 | 2100 | |
47358104 | rioyoung | D1 | Dec. 22, 2018, 7:17 a.m. | OK | Python 3 | TESTS | 41 | 264 | 13926400 | 2100 | |
47230827 | yakamoto | D1 | Dec. 18, 2018, 6:02 p.m. | OK | Scala | TESTS | 41 | 576 | 13721600 | 2100 |
Back to search problems