Codeforces Round 662 (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
1393 Codeforces Round 662 (Div. 2) FINISHED False 7200 140455463 Aug. 7, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 20591 ) A Rainbow Dash, Fluttershy and Chess Coloring PROGRAMMING greedy math

B'One evening Rainbow Dash and Fluttershy have come up with a game. Since the ponies are friends, they have decided not to compete in the game but to pursue a common goal. The game starts on a square flat grid, which initially has the outline borders built up. Rainbow Dash and Fluttershy have flat square blocks with size 1 x 1 , Rainbow Dash has an infinite amount of light blue blocks, Fluttershy has an infinite amount of yellow blocks. The blocks are placed according to the following rule: each newly placed block must touch the built on the previous turns figure by a side (note that the outline borders of the grid are built initially). At each turn, one pony can place any number of blocks of her color according to the game rules. Rainbow and Fluttershy have found out that they can build patterns on the grid of the game that way. They have decided to start with something simple, so they made up their mind to place the blocks to form a chess coloring. Rainbow Dash is well-known for her speed, so she is interested in the minimum number of turns she and Fluttershy need to do to get a chess coloring, covering the whole grid with blocks. Please help her find that number! Since the ponies can play many times on different boards, Rainbow Dash asks you to find the minimum numbers of turns for several grids of the games. The chess coloring in two colors is the one in which each square is neighbor by side only with squares of different colors. The first line contains a single integer T ( 1 <= T <= 100 ): the number of grids of the games. Each of the next T lines contains a single integer n ( 1 <= n <= 10^9 ): the size of the side of the grid of the game. For each grid of the game print the minimum number of turns required to build a chess coloring pattern out of blocks on it. For 3 x 3 grid ponies can make two following moves: '...

Tutorials

Codeforces Round #662 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
90243719 KRISH99 A Aug. 17, 2020, 3:38 p.m. OK Clang++17 Diagnostics TESTS 12 46 0
90356328 chirag_692001 A Aug. 19, 2020, 4:21 a.m. OK Clang++17 Diagnostics TESTS 12 46 0
89598128 gxlois A Aug. 11, 2020, 5:18 p.m. OK D TESTS 12 46 4710400
89780850 impuk A Aug. 13, 2020, 9:38 a.m. OK FPC TESTS 12 31 0
91210691 luogu_bot4 A Aug. 28, 2020, 1:16 p.m. OK FPC TESTS 12 31 204800
89401658 duydec1 A Aug. 9, 2020, 1:10 p.m. OK FPC TESTS 12 31 3379200
89587899 HQT2003 A Aug. 11, 2020, 2:56 p.m. OK FPC TESTS 12 31 3686400
89444938 Bronstein0x1ea0556 A Aug. 9, 2020, 3:58 p.m. OK FPC TESTS 12 46 3481600
89561229 SatouYami A Aug. 11, 2020, 8:25 a.m. OK FPC TESTS 12 46 3481600
91140906 aes_the_tic A Aug. 27, 2020, 2:24 p.m. OK GNU C11 TESTS 12 15 0
89816208 aebtll A Aug. 13, 2020, 5:15 p.m. OK GNU C11 TESTS 12 15 0
91229069 softslayer A Aug. 28, 2020, 4:41 p.m. OK GNU C11 TESTS 12 15 0
91543373 Faria218 A Sept. 1, 2020, 7:09 a.m. OK GNU C11 TESTS 12 15 0
90404786 i-can-code A Aug. 19, 2020, 4:03 p.m. OK GNU C11 TESTS 12 15 0
89562009 stars_in_the_sky A Aug. 11, 2020, 8:37 a.m. OK GNU C11 TESTS 12 15 3686400
89615977 timeouts A Aug. 12, 2020, 2:14 a.m. OK GNU C11 TESTS 12 15 3686400
89617725 KCSB A Aug. 12, 2020, 3:04 a.m. OK GNU C11 TESTS 12 15 3686400
89478642 Mr_Bin A Aug. 10, 2020, 4:21 a.m. OK GNU C11 TESTS 12 15 3686400
89538357 iHam898 A Aug. 10, 2020, 10:36 p.m. OK GNU C11 TESTS 12 15 3686400
91017543 Banty A Aug. 26, 2020, 4:56 a.m. OK GNU C++11 TESTS 12 15 0
91234024 marcosportales A Aug. 28, 2020, 5:48 p.m. OK GNU C++11 TESTS 12 15 0
91271730 Bulboaca_Eugen A Aug. 29, 2020, 9:18 a.m. OK GNU C++11 TESTS 12 15 0
91321423 xhwl A Aug. 30, 2020, 4:21 a.m. OK GNU C++11 TESTS 12 15 0
91493140 vjudge4 A Aug. 31, 2020, 1:08 p.m. OK GNU C++11 TESTS 12 15 0
91605765 Flash_plus A Sept. 2, 2020, 2:02 a.m. OK GNU C++11 TESTS 12 15 0
91623584 luogu_bot1 A Sept. 2, 2020, 8:16 a.m. OK GNU C++11 TESTS 12 15 0
91623592 hjh A Sept. 2, 2020, 8:16 a.m. OK GNU C++11 TESTS 12 15 0
91670501 Hassan_TheBoss_ A Sept. 2, 2020, 7:24 p.m. OK GNU C++11 TESTS 12 15 0
91031795 luogu_bot3 A Aug. 26, 2020, 8:19 a.m. OK GNU C++11 TESTS 12 15 0
91203916 oipotato A Aug. 28, 2020, 11:40 a.m. OK GNU C++14 TESTS 12 15 0
90363118 shukshiraj A Aug. 19, 2020, 6:30 a.m. OK GNU C++14 TESTS 12 15 0
90019398 parthrajchauhan100 A Aug. 15, 2020, 12:49 p.m. OK GNU C++14 TESTS 12 15 0
89841054 Manishkumar1017 A Aug. 14, 2020, 4:42 a.m. OK GNU C++14 TESTS 12 15 0
90824981 adicell99 A Aug. 24, 2020, 12:27 p.m. OK GNU C++14 TESTS 12 15 3686400
90536350 ilidar A Aug. 21, 2020, 1:39 p.m. OK GNU C++14 TESTS 12 15 3686400
89600165 SidJha A Aug. 11, 2020, 5:50 p.m. OK GNU C++14 TESTS 12 15 3686400
89374952 dark_knight_rises_again A Aug. 9, 2020, 5:25 a.m. OK GNU C++14 TESTS 12 15 3686400
89374612 suchet0825 A Aug. 9, 2020, 5:16 a.m. OK GNU C++14 TESTS 12 15 3686400
89372629 priyansh_singh11 A Aug. 9, 2020, 4:19 a.m. OK GNU C++14 TESTS 12 15 3686400
89852218 snehaljuneja A Aug. 14, 2020, 7:56 a.m. OK GNU C++17 TESTS 12 15 0
91647257 vjudge3 A Sept. 2, 2020, 2:02 p.m. OK GNU C++17 TESTS 12 15 0
91066819 jerryliuhkg A Aug. 26, 2020, 3:09 p.m. OK GNU C++17 TESTS 12 15 0
90493361 skslunatic A Aug. 20, 2020, 7:52 p.m. OK GNU C++17 TESTS 12 15 0
90478111 goel8002 A Aug. 20, 2020, 3:48 p.m. OK GNU C++17 TESTS 12 15 0
90477281 aspiror A Aug. 20, 2020, 3:38 p.m. OK GNU C++17 TESTS 12 15 0
90420483 msf_venom A Aug. 19, 2020, 9:02 p.m. OK GNU C++17 TESTS 12 15 0
89807923 Fridgi A Aug. 13, 2020, 3:29 p.m. OK GNU C++17 TESTS 12 15 0
89495154 VipinSoni A Aug. 10, 2020, 8:53 a.m. OK GNU C++17 TESTS 12 15 3686400
89549361 rian_ahmed_rony A Aug. 11, 2020, 5:10 a.m. OK GNU C++17 TESTS 12 15 3686400
89730569 abhigyan10 A Aug. 12, 2020, 5:39 p.m. OK GNU C++17 (64) TESTS 12 15 0
89832941 chhokmah A Aug. 14, 2020, 1:01 a.m. OK GNU C++17 (64) TESTS 12 15 0
89937195 Ahmad45123 A Aug. 14, 2020, 3:54 p.m. OK GNU C++17 (64) TESTS 12 15 0
90395120 betrue12 A Aug. 19, 2020, 2:06 p.m. OK GNU C++17 (64) TESTS 12 15 0
91177012 akifpatel A Aug. 28, 2020, 3:41 a.m. OK GNU C++17 (64) TESTS 12 15 0
91274240 ivan100sic A Aug. 29, 2020, 9:56 a.m. OK GNU C++17 (64) TESTS 12 15 0
90250088 vjudge3 A Aug. 17, 2020, 4:54 p.m. OK GNU C++17 (64) TESTS 12 15 0
89658524 proksy A Aug. 12, 2020, 2:24 p.m. OK GNU C++17 (64) TESTS 12 15 0
90810808 gxucm A Aug. 24, 2020, 9:03 a.m. OK GNU C++17 (64) TESTS 12 15 4300800
90762838 kunal101 A Aug. 23, 2020, 2:19 p.m. OK GNU C++17 (64) TESTS 12 15 4300800
89539827 jc881203 A Aug. 10, 2020, 11:55 p.m. OK Go TESTS 12 31 11878400
89372022 xrtgavin A Aug. 9, 2020, 4 a.m. OK Go TESTS 12 46 10854400
89765836 ramesh.baskaran A Aug. 13, 2020, 6:19 a.m. OK Haskell TESTS 12 15 102400
90255420 Andrey_R A Aug. 17, 2020, 6:15 p.m. OK Haskell TESTS 12 30 102400
89595204 SunR1se A Aug. 11, 2020, 4:33 p.m. OK Java 11 TESTS 12 156 23756800
90782864 Pekora A Aug. 23, 2020, 8:08 p.m. OK Java 11 TESTS 12 170 23756800
91064279 Vatsal53 A Aug. 26, 2020, 2:45 p.m. OK Java 11 TESTS 12 171 0
90851664 gsahil216 A Aug. 24, 2020, 6:14 p.m. OK Java 11 TESTS 12 171 0
90304110 mssawant A Aug. 18, 2020, 11:46 a.m. OK Java 11 TESTS 12 171 0
89404187 devanshjsr A Aug. 9, 2020, 1:52 p.m. OK Java 11 TESTS 12 171 23756800
89386762 rishab1815 A Aug. 9, 2020, 8:56 a.m. OK Java 11 TESTS 12 171 23756800
89379904 codego144 A Aug. 9, 2020, 7:05 a.m. OK Java 11 TESTS 12 171 23756800
90180619 nadaabdo588 A Aug. 16, 2020, 10:55 p.m. OK Java 11 TESTS 12 186 0
90373109 maghavgoyal A Aug. 19, 2020, 8:54 a.m. OK Java 11 TESTS 12 186 0
90283812 srvptk97 A Aug. 18, 2020, 6:57 a.m. OK Java 8 TESTS 12 93 0
91175889 tarun_sm A Aug. 28, 2020, 3:05 a.m. OK Java 8 TESTS 12 93 0
89718201 PratyushS7 A Aug. 12, 2020, 4:13 p.m. OK Java 8 TESTS 12 108 0
89734398 vjvjain0 A Aug. 12, 2020, 6:10 p.m. OK Java 8 TESTS 12 108 0
90001007 sanketmakani A Aug. 15, 2020, 8:23 a.m. OK Java 8 TESTS 12 108 0
91049199 chesiver A Aug. 26, 2020, 12:15 p.m. OK Java 8 TESTS 12 108 0
91150588 n3o-d4rk3r A Aug. 27, 2020, 4:11 p.m. OK Java 8 TESTS 12 108 0
89356380 _IAm_PM_ A Aug. 8, 2020, 6:19 p.m. OK Java 8 TESTS 12 108 20275200
89363668 AnandOza A Aug. 8, 2020, 9:22 p.m. OK Java 8 TESTS 12 108 20275200
90509422 wretar A Aug. 21, 2020, 7:12 a.m. OK Java 8 TESTS 12 108 20377600
89635169 IsTinG A Aug. 12, 2020, 8:39 a.m. OK Kotlin TESTS 12 109 20377600
89510905 dkozak94 A Aug. 10, 2020, 12:56 p.m. OK Kotlin TESTS 12 109 20377600
89404602 attlas A Aug. 9, 2020, 1:59 p.m. OK Kotlin TESTS 12 109 20377600
89398593 Leemur A Aug. 9, 2020, 12:21 p.m. OK Kotlin TESTS 12 109 20377600
89351753 Spheniscine A Aug. 8, 2020, 4:49 p.m. OK Kotlin TESTS 12 109 20377600
90434104 Ghasem A Aug. 20, 2020, 5:17 a.m. OK Kotlin TESTS 12 124 0
89504727 koper A Aug. 10, 2020, 11:28 a.m. OK Kotlin TESTS 12 124 20377600
89558889 ka4tik A Aug. 11, 2020, 7:52 a.m. OK Kotlin TESTS 12 124 21094400
89367103 a11eca A Aug. 9, 2020, 12:18 a.m. OK Kotlin TESTS 12 124 21196800
89383699 T0xicK0ala A Aug. 9, 2020, 8:07 a.m. OK Mono C# TESTS 12 46 8601600
89467960 pycyu A Aug. 9, 2020, 9:43 p.m. OK Mono C# TESTS 12 46 8601600
91097325 nghiapd A Aug. 27, 2020, 1:53 a.m. OK Mono C# TESTS 12 62 0
89801782 azukun A Aug. 13, 2020, 2:14 p.m. OK Mono C# TESTS 12 62 1740800
89503031 TRR A Aug. 10, 2020, 11:01 a.m. OK Mono C# TESTS 12 62 8601600
89384154 eSeF_ A Aug. 9, 2020, 8:15 a.m. OK Mono C# TESTS 12 62 75878400
90075164 hibatibati A Aug. 16, 2020, 10:38 a.m. OK Mono C# TESTS 12 77 1638400
89344760 CLown1331 A Aug. 8, 2020, 2:58 p.m. OK Mono C# TESTS 12 78 144793600
90364500 DiSTRuCtO A Aug. 19, 2020, 6:50 a.m. OK MS C++ TESTS 12 31 0
91337409 nay_1234 A Aug. 30, 2020, 11:20 a.m. OK MS C++ TESTS 12 31 4096000
90419164 InoxBall A Aug. 19, 2020, 8:21 p.m. OK MS C++ 2017 TESTS 12 31 0
91252246 lectura A Aug. 29, 2020, 2:59 a.m. OK MS C++ 2017 TESTS 12 31 0
91251462 jkroll87 A Aug. 29, 2020, 2:29 a.m. OK MS C++ 2017 TESTS 12 31 0
91250025 wonbin0504 A Aug. 29, 2020, 1:27 a.m. OK MS C++ 2017 TESTS 12 31 0
91250021 minigimbob A Aug. 29, 2020, 1:27 a.m. OK MS C++ 2017 TESTS 12 31 0
91201898 jagajang A Aug. 28, 2020, 11:09 a.m. OK MS C++ 2017 TESTS 12 31 0
90464260 dixmw34 A Aug. 20, 2020, 1:02 p.m. OK MS C++ 2017 TESTS 12 31 0
90347809 Baobab0304 A Aug. 18, 2020, 11:24 p.m. OK MS C++ 2017 TESTS 12 31 0
90075288 Mahdi_Adib A Aug. 16, 2020, 10:41 a.m. OK MS C++ 2017 TESTS 12 31 0
89998349 swenzje A Aug. 15, 2020, 7:49 a.m. OK MS C++ 2017 TESTS 12 31 0
90379135 tutai A Aug. 19, 2020, 10:24 a.m. OK Node.js TESTS 12 93 204800
90759824 Fatelon A Aug. 23, 2020, 1:39 p.m. OK Node.js TESTS 12 93 12083200
90862326 khang2222 A Aug. 25, 2020, 2:10 a.m. OK PascalABC.NET TESTS 12 311 121139200
89827011 sanyacoder A Aug. 13, 2020, 8:46 p.m. OK Perl TESTS 12 31 0
89477904 pablood A Aug. 10, 2020, 4:01 a.m. OK PHP TESTS 12 46 6041600
90690009 u1804011 A Aug. 22, 2020, 1:16 p.m. OK PHP TESTS 12 46 6041600
90747953 Reeeesus A Aug. 23, 2020, 10:48 a.m. OK PyPy 2 TESTS 12 156 23142400
91253718 wq0212 A Aug. 29, 2020, 3:46 a.m. OK PyPy 3 TESTS 12 124 0
90065993 artist_13 A Aug. 16, 2020, 7:51 a.m. OK PyPy 3 TESTS 12 124 0
89379029 dinolin A Aug. 9, 2020, 6:51 a.m. OK PyPy 3 TESTS 12 124 20172800
90735653 kritarth21 A Aug. 23, 2020, 7:36 a.m. OK PyPy 3 TESTS 12 124 20172800
89650353 Tanvir752 A Aug. 12, 2020, 12:29 p.m. OK PyPy 3 TESTS 12 124 20172800
89633622 Nidhay210 A Aug. 12, 2020, 8:16 a.m. OK PyPy 3 TESTS 12 124 20172800
89396422 dankanbin A Aug. 9, 2020, 11:43 a.m. OK PyPy 3 TESTS 12 124 20172800
89389231 petya47 A Aug. 9, 2020, 9:39 a.m. OK PyPy 3 TESTS 12 124 20172800
89384279 jokkebk A Aug. 9, 2020, 8:17 a.m. OK PyPy 3 TESTS 12 124 20172800
89383139 Ryanjoo18 A Aug. 9, 2020, 7:56 a.m. OK PyPy 3 TESTS 12 124 20172800
89391798 aman_shahi2 A Aug. 9, 2020, 10:23 a.m. OK Python 2 TESTS 12 155 6553600
89351911 yoav1248 A Aug. 8, 2020, 4:52 p.m. OK Python 2 TESTS 12 156 6553600
91707695 shubham2909 A Sept. 3, 2020, 10:21 a.m. OK Python 3 TESTS 12 93 0
91677819 MaxXu A Sept. 2, 2020, 11:11 p.m. OK Python 3 TESTS 12 93 0
91643924 Mehrdad_ravenS A Sept. 2, 2020, 1:20 p.m. OK Python 3 TESTS 12 93 0
91588777 niharika_mathur A Sept. 1, 2020, 5:29 p.m. OK Python 3 TESTS 12 93 0
91311539 zero_pi A Aug. 29, 2020, 8:35 p.m. OK Python 3 TESTS 12 93 0
91121473 ndocx A Aug. 27, 2020, 9:47 a.m. OK Python 3 TESTS 12 93 0
91070896 andreucr_ A Aug. 26, 2020, 3:48 p.m. OK Python 3 TESTS 12 93 0
90483042 rishi_saraswat A Aug. 20, 2020, 4:52 p.m. OK Python 3 TESTS 12 93 0
90419929 freemolly A Aug. 19, 2020, 8:44 p.m. OK Python 3 TESTS 12 93 0
90368762 Rudresh A Aug. 19, 2020, 7:51 a.m. OK Python 3 TESTS 12 93 0
90020365 Alsophila A Aug. 15, 2020, 1:05 p.m. OK Ruby TESTS 12 577 102400
90619341 Ballu-Bhai A Aug. 21, 2020, 5:05 p.m. OK Rust TESTS 12 31 3788800
89375579 zhaoyiping A Aug. 9, 2020, 5:40 a.m. OK Rust TESTS 12 31 3788800
89573188 Strorkis A Aug. 11, 2020, 11:38 a.m. OK Rust TESTS 12 46 3788800

remove filters

Back to search problems