Codeforces Round 627 (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
1324 Codeforces Round 627 (Div. 3) FINISHED False 7200 147804899 March 12, 2020, 1:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 26044 ) A Yet Another Tetris Problem PROGRAMMING implementation number theory

B'You are given some Tetris field consisting of n columns. The initial height of the i -th column of the field is a_i blocks. On top of these columns you can place only figures of size 2 x 1 (i.e. the height of this figure is 2 blocks and the width of this figure is 1 block). Note that you cannot rotate these figures. Your task is to say if you can clear the whole field by placing such figures. More formally, the problem can be described like this: The following process occurs while at least one a_i is greater than 0 : And your task is to determine if it is possible to clear the whole field (i.e. finish the described process), choosing the places for new figures properly. You have to answer t independent test cases. The first line of the input contains one integer t ( 1 <= t <= 100 ) -- the number of test cases. The next 2t lines describe test cases. The first line of the test case contains one integer n ( 1 <= n <= 100 ) -- the number of columns in the Tetris field. The second line of the test case contains n integers a_1, a_2, ... , a_n ( 1 <= a_i <= 100 ), where a_i is the initial height of the i -th column of the Tetris field. For each test case, print the answer -- "YES" (without quotes) if you can clear the whole Tetris field and "NO" otherwise. The first test case of the example field is shown below: Gray lines are bounds of the Tetris field. Note that the field has no upper bound. One of the correct answers is to first place the figure in the first column. Then after the second step of the process, the field becomes [2, 0, 2] . Then place the figure in the second column and after the second step of the process, the field becomes [0, 0, 0] . And the second test case of the example field is shown below: It can be shown that you cannot do anything to end the process. In the third test case of the example, you first place th'...

Tutorials

Codeforces Round #627 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
73680460 QQDW A March 19, 2020, 2:58 p.m. OK Clang++17 Diagnostics TESTS 8 61 0
73319603 showstopper A March 15, 2020, 9:16 a.m. OK Clang++17 Diagnostics TESTS 8 61 1024000
73660780 yushao.cs05 A March 19, 2020, 2:21 p.m. OK Clang++17 Diagnostics TESTS 8 61 4198400
73686507 yushao.cs05 A March 19, 2020, 3:08 p.m. OK Clang++17 Diagnostics TESTS 8 62 0
73672800 yushao.cs05 A March 19, 2020, 2:48 p.m. OK Clang++17 Diagnostics TESTS 8 77 0
73659627 wlshih A March 19, 2020, 2:08 p.m. OK Clang++17 Diagnostics TESTS 8 78 0
73289006 TheHedgehog A March 14, 2020, 9:18 p.m. OK Delphi TESTS 8 31 2867200
73193489 AKWarriors A March 14, 2020, 7:16 a.m. OK FPC TESTS 8 15 0
73579493 Israt_Jahan_Nahin A March 18, 2020, 2:29 p.m. OK GNU C11 TESTS 8 15 0
73203780 samarthsachan5 A March 14, 2020, 9:59 a.m. OK GNU C11 TESTS 8 15 0
73788106 roopashree123 A March 20, 2020, 11:46 a.m. OK GNU C11 TESTS 8 15 0
73211143 410621229 A March 14, 2020, 11:56 a.m. OK GNU C11 TESTS 8 15 0
73289718 SHresTho.28 A March 14, 2020, 9:36 p.m. OK GNU C11 TESTS 8 15 0
73346455 sining A March 15, 2020, 3:15 p.m. OK GNU C11 TESTS 8 15 0
73369080 vjudge5 A March 15, 2020, 9:16 p.m. OK GNU C11 TESTS 8 15 0
73525970 NhatLe A March 17, 2020, 9:34 p.m. OK GNU C11 TESTS 8 15 0
73560848 _dark_knight_ A March 18, 2020, 10:41 a.m. OK GNU C11 TESTS 8 15 0
73572257 wksinha A March 18, 2020, 1:06 p.m. OK GNU C11 TESTS 8 15 0
73795719 vjudge2 A March 20, 2020, 1:18 p.m. OK GNU C++11 TESTS 8 15 0
73796217 BeBeBe66666 A March 20, 2020, 1:23 p.m. OK GNU C++11 TESTS 8 15 0
73761779 csmadhav A March 20, 2020, 5:28 a.m. OK GNU C++11 TESTS 8 15 0
73755128 Soomanib_037 A March 20, 2020, 3:14 a.m. OK GNU C++11 TESTS 8 15 0
73737013 rajuIIT A March 19, 2020, 6:27 p.m. OK GNU C++11 TESTS 8 15 0
73736391 hritik31 A March 19, 2020, 6:07 p.m. OK GNU C++11 TESTS 8 15 0
73613482 luckypanther A March 18, 2020, 11:20 p.m. OK GNU C++11 TESTS 8 15 0
73562375 radhika.rao A March 18, 2020, 11:03 a.m. OK GNU C++11 TESTS 8 15 0
73554720 vlad198 A March 18, 2020, 9:14 a.m. OK GNU C++11 TESTS 8 15 0
73502167 kaustav_sen A March 17, 2020, 3:55 p.m. OK GNU C++11 TESTS 8 15 0
73798438 ARMi A March 20, 2020, 1:49 p.m. OK GNU C++14 TESTS 8 15 0
73798572 Turtle_hermit16 A March 20, 2020, 1:51 p.m. OK GNU C++14 TESTS 8 15 0
73814288 pankajgt333 A March 20, 2020, 5:12 p.m. OK GNU C++14 TESTS 8 15 0
73814758 saber_dnp A March 20, 2020, 5:16 p.m. OK GNU C++14 TESTS 8 15 0
73816587 Mouno A March 20, 2020, 5:34 p.m. OK GNU C++14 TESTS 8 15 0
73817145 CHAOSCONTROL A March 20, 2020, 5:39 p.m. OK GNU C++14 TESTS 8 15 0
73826606 iamSPEED A March 20, 2020, 7:11 p.m. OK GNU C++14 TESTS 8 15 0
73826723 asipu_pawan A March 20, 2020, 7:13 p.m. OK GNU C++14 TESTS 8 15 0
73828366 HighOnC A March 20, 2020, 7:32 p.m. OK GNU C++14 TESTS 8 15 0
73829892 jatinagrawal A March 20, 2020, 7:52 p.m. OK GNU C++14 TESTS 8 15 0
73807823 Manan_shah A March 20, 2020, 3:42 p.m. OK GNU C++17 TESTS 8 15 0
73807698 mahbuburrahmamfahim A March 20, 2020, 3:41 p.m. OK GNU C++17 TESTS 8 15 0
73805605 mayank_992 A March 20, 2020, 3:17 p.m. OK GNU C++17 TESTS 8 15 0
73802459 barry1928 A March 20, 2020, 2:38 p.m. OK GNU C++17 TESTS 8 15 0
73802428 Aman2000 A March 20, 2020, 2:37 p.m. OK GNU C++17 TESTS 8 15 0
73802280 Zombie_18 A March 20, 2020, 2:35 p.m. OK GNU C++17 TESTS 8 15 0
73800948 SubsTheTechnomancer A March 20, 2020, 2:20 p.m. OK GNU C++17 TESTS 8 15 0
73792923 dffTu A March 20, 2020, 12:45 p.m. OK GNU C++17 TESTS 8 15 0
73788694 A1phaZ3r0 A March 20, 2020, 11:53 a.m. OK GNU C++17 TESTS 8 15 0
73784790 AakashGoyal A March 20, 2020, 11:01 a.m. OK GNU C++17 TESTS 8 15 0
73274533 coyorkdow A March 14, 2020, 5:29 p.m. OK Go TESTS 8 31 0
73115433 snow_bear_328 A March 13, 2020, 3:21 a.m. OK Go TESTS 8 31 0
73459921 keshu6598 A March 17, 2020, 6:57 a.m. OK Go TESTS 8 92 102400
73188097 dach A March 14, 2020, 5:43 a.m. OK Go TESTS 8 108 0
73593680 cashitsuki A March 18, 2020, 5:17 p.m. OK Haskell TESTS 8 30 102400
73130765 cunitac A March 13, 2020, 9 a.m. OK Haskell TESTS 8 30 102400
73788626 Ziax A March 20, 2020, 11:52 a.m. OK Java 11 TESTS 8 171 0
73602772 Piccadilly A March 18, 2020, 7:14 p.m. OK Java 11 TESTS 8 171 0
73452631 sajith A March 17, 2020, 4:22 a.m. OK Java 11 TESTS 8 171 0
73167127 sara.said776 A March 13, 2020, 7:07 p.m. OK Java 11 TESTS 8 171 0
73156234 WaheguruAnurag A March 13, 2020, 4:54 p.m. OK Java 11 TESTS 8 171 0
73154367 nt_7 A March 13, 2020, 4:30 p.m. OK Java 11 TESTS 8 171 0
73152542 pennyIsLove A March 13, 2020, 4:04 p.m. OK Java 11 TESTS 8 171 0
73151923 ganjoo_kosam A March 13, 2020, 3:56 p.m. OK Java 11 TESTS 8 171 0
73768863 OBrutus A March 20, 2020, 7:11 a.m. OK Java 11 TESTS 8 186 0
73646101 TUPA_NE_SILEN_V_KODE A March 19, 2020, 11:02 a.m. OK Java 11 TESTS 8 186 0
73627903 codegeekabhi A March 19, 2020, 6:34 a.m. OK Java 8 TESTS 8 93 0
73355897 golions A March 15, 2020, 5:19 p.m. OK Java 8 TESTS 8 93 0
73197180 shivendra12119 A March 14, 2020, 8:17 a.m. OK Java 8 TESTS 8 93 0
73166820 MagentaCobra A March 13, 2020, 7:02 p.m. OK Java 8 TESTS 8 93 0
73791717 Nirav412000 A March 20, 2020, 12:29 p.m. OK Java 8 TESTS 8 108 0
73467789 L_aka_ryuga A March 17, 2020, 9 a.m. OK Java 8 TESTS 8 108 0
73462073 paridhi.saxenaa A March 17, 2020, 7:30 a.m. OK Java 8 TESTS 8 108 0
73358621 Nk47 A March 15, 2020, 5:59 p.m. OK Java 8 TESTS 8 108 0
73302932 Pijush_Mohanto A March 15, 2020, 5 a.m. OK Java 8 TESTS 8 108 0
73212625 nightcapybara A March 14, 2020, 12:18 p.m. OK Java 8 TESTS 8 108 0
73108481 jhonber A March 12, 2020, 10:48 p.m. OK JavaScript TESTS 8 30 307200
73089383 Vyachik1337 A March 12, 2020, 4:40 p.m. OK JavaScript TESTS 8 31 102400
73444430 Benq A March 16, 2020, 10:59 p.m. OK Kotlin TESTS 8 124 0
73190631 YESMAths A March 14, 2020, 6:28 a.m. OK Kotlin TESTS 8 124 0
73114111 Spheniscine A March 13, 2020, 2:40 a.m. OK Kotlin TESTS 8 124 0
73101203 Smakson A March 12, 2020, 7:41 p.m. OK Kotlin TESTS 8 124 0
73083456 SlavaG A March 12, 2020, 3:31 p.m. OK Kotlin TESTS 8 124 0
73787231 Killer45 A March 20, 2020, 11:34 a.m. OK Kotlin TESTS 8 124 409600
73174790 ostroumov A March 13, 2020, 9:29 p.m. OK Kotlin TESTS 8 124 512000
73809846 david_varela A March 20, 2020, 4:15 p.m. OK Kotlin TESTS 8 140 102400
73157883 DisPony A March 13, 2020, 5:12 p.m. OK Kotlin TESTS 8 155 102400
73127015 ZakoylovIlya A March 13, 2020, 7:44 a.m. OK Kotlin TESTS 8 155 204800
73154280 elvladi15 A March 13, 2020, 4:28 p.m. OK Mono C# TESTS 8 46 409600
73082630 nikitos111 A March 12, 2020, 3:23 p.m. OK Mono C# TESTS 8 46 409600
73185250 shy3205 A March 14, 2020, 4:39 a.m. OK Mono C# TESTS 8 46 4198400
73127304 ansergeyg A March 13, 2020, 7:50 a.m. OK Mono C# TESTS 8 61 512000
73373854 amir.jhanem A March 16, 2020, 12:14 a.m. OK Mono C# TESTS 8 62 4198400
73535478 de_loo A March 18, 2020, 3:25 a.m. OK Mono C# TESTS 8 62 4198400
73095942 TRR A March 12, 2020, 6:12 p.m. OK Mono C# TESTS 8 77 409600
73546135 Raisa.Tofanel A March 18, 2020, 7:06 a.m. OK MS C++ TESTS 8 15 0
73218568 vjudge5 A March 14, 2020, 1:42 p.m. OK MS C++ TESTS 8 15 0
73227275 vjudge1 A March 14, 2020, 2:40 p.m. OK MS C++ TESTS 8 15 0
73794474 vjudge2 A March 20, 2020, 1:03 p.m. OK MS C++ TESTS 8 15 0
73178689 vjudge4 A March 14, 2020, 12:05 a.m. OK MS C++ TESTS 8 15 0
73197156 vjudge4 A March 14, 2020, 8:17 a.m. OK MS C++ TESTS 8 15 0
73197709 vjudge1 A March 14, 2020, 8:25 a.m. OK MS C++ TESTS 8 15 0
73795964 vjudge4 A March 20, 2020, 1:21 p.m. OK MS C++ TESTS 8 30 0
73794771 vjudge3 A March 20, 2020, 1:07 p.m. OK MS C++ TESTS 8 30 0
73799746 vjudge3 A March 20, 2020, 2:06 p.m. OK MS C++ TESTS 8 30 0
73189360 omerb.zeybek A March 14, 2020, 6:06 a.m. OK MS C++ 2017 TESTS 8 15 0
73547819 CosmanCosmin A March 18, 2020, 7:30 a.m. OK MS C++ 2017 TESTS 8 15 0
73268724 DeaL57 A March 14, 2020, 4:23 p.m. OK MS C++ 2017 TESTS 8 15 0
73184685 Chinmize A March 14, 2020, 4:23 a.m. OK MS C++ 2017 TESTS 8 15 0
73103104 star1programist5 A March 12, 2020, 8:18 p.m. OK MS C++ 2017 TESTS 8 15 0
73082576 Mitta-Maria A March 12, 2020, 3:23 p.m. OK MS C++ 2017 TESTS 8 15 0
73636054 lorinBudaca A March 19, 2020, 8:30 a.m. OK MS C++ 2017 TESTS 8 30 0
73554264 narcis.barat A March 18, 2020, 9:07 a.m. OK MS C++ 2017 TESTS 8 30 0
73597601 Hatzker A March 18, 2020, 6:04 p.m. OK MS C++ 2017 TESTS 8 30 0
73403994 vjudge4 A March 16, 2020, 11:48 a.m. OK MS C++ 2017 TESTS 8 30 0
73442623 Harolinch A March 16, 2020, 9:54 p.m. OK Node.js TESTS 8 155 1433600
73095356 PepegaClown A March 12, 2020, 6:02 p.m. OK PascalABC.NET TESTS 8 186 0
73091374 mayakin A March 12, 2020, 5:08 p.m. OK PHP TESTS 8 46 0
73554402 jolt.tks A March 18, 2020, 9:09 a.m. OK PyPy 2 TESTS 8 124 204800
73090202 apoorv1999 A March 12, 2020, 4:51 p.m. OK PyPy 2 TESTS 8 124 204800
73091453 sid597 A March 12, 2020, 5:09 p.m. OK PyPy 2 TESTS 8 155 921600
73313664 peijinz A March 15, 2020, 7:48 a.m. OK PyPy 2 TESTS 8 170 307200
73210479 yumtam A March 14, 2020, 11:46 a.m. OK PyPy 2 TESTS 8 171 307200
73343567 elvar333 A March 15, 2020, 2:36 p.m. OK PyPy 2 TESTS 8 186 307200
73416831 shehebe A March 16, 2020, 2:53 p.m. OK PyPy 2 TESTS 8 186 1536000
73179609 zhuodannychen A March 14, 2020, 12:57 a.m. OK PyPy 3 TESTS 8 124 1536000
73406213 Chudotvorech A March 16, 2020, 12:18 p.m. OK PyPy 3 TESTS 8 139 1433600
73175285 neweekoff A March 13, 2020, 9:44 p.m. OK PyPy 3 TESTS 8 139 1433600
73098334 Anuranjan_Pandey A March 12, 2020, 6:50 p.m. OK PyPy 3 TESTS 8 139 1433600
73220631 Vladithur A March 14, 2020, 2:11 p.m. OK PyPy 3 TESTS 8 139 1536000
73110598 rahulk207 A March 13, 2020, 12:23 a.m. OK PyPy 3 TESTS 8 140 1331200
73800614 RaZoR_191 A March 20, 2020, 2:16 p.m. OK PyPy 3 TESTS 8 140 1433600
73641599 lemurciap A March 19, 2020, 9:54 a.m. OK PyPy 3 TESTS 8 140 1433600
73631866 Zahid1558 A March 19, 2020, 7:32 a.m. OK PyPy 3 TESTS 8 140 1433600
73601710 akshitm16 A March 18, 2020, 6:59 p.m. OK PyPy 3 TESTS 8 140 1433600
73349971 cecerhcp A March 15, 2020, 4:05 p.m. OK Python 2 TESTS 8 171 0
73296582 cecerhcp A March 15, 2020, 1:52 a.m. OK Python 2 TESTS 8 171 0
73509339 manvigoel A March 17, 2020, 5:18 p.m. OK Python 2 TESTS 8 171 102400
73096980 GuLguy A March 12, 2020, 6:28 p.m. OK Python 2 TESTS 8 186 0
73802562 Dronbonpon A March 20, 2020, 2:39 p.m. OK Python 3 TESTS 8 93 0
73782223 vchilikov A March 20, 2020, 10:21 a.m. OK Python 3 TESTS 8 93 0
73782093 vchilikov A March 20, 2020, 10:20 a.m. OK Python 3 TESTS 8 93 0
73781551 sarthak_bharadwaj_ A March 20, 2020, 10:12 a.m. OK Python 3 TESTS 8 93 0
73779953 cs1g A March 20, 2020, 9:49 a.m. OK Python 3 TESTS 8 93 0
73573806 xoiiox A March 18, 2020, 1:24 p.m. OK Python 3 TESTS 8 93 0
73540039 dhruvthebest A March 18, 2020, 5:24 a.m. OK Python 3 TESTS 8 93 0
73478699 ayushnemmaniwar12 A March 17, 2020, 11:39 a.m. OK Python 3 TESTS 8 93 0
73459269 io___oi A March 17, 2020, 6:46 a.m. OK Python 3 TESTS 8 93 0
73421762 agrawalamritanshu82 A March 16, 2020, 4 p.m. OK Python 3 TESTS 8 93 0
73088426 TryUntilDeath A March 12, 2020, 4:26 p.m. OK Ruby TESTS 8 77 102400
73087914 TryUntilDeath A March 12, 2020, 4:19 p.m. OK Ruby TESTS 8 77 102400
73765769 the.shank A March 20, 2020, 6:26 a.m. OK Rust TESTS 8 31 0
73325465 kakalot A March 15, 2020, 10:39 a.m. OK Scala TESTS 8 452 0
73325271 kakalot A March 15, 2020, 10:37 a.m. OK Scala TESTS 8 452 0

remove filters

Back to search problems