Codeforces Round 632 (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
1333 Codeforces Round 632 (Div. 2) FINISHED False 7200 150996311 April 8, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 24775 ) A Little Artem PROGRAMMING constructive algorithms

B"Young boy Artem tries to paint a picture, and he asks his mother Medina to help him. Medina is very busy, that's why she asked for your help. Artem wants to paint an n x m board. Each cell of the board should be colored in white or black. Lets B be the number of black cells that have at least one white neighbor adjacent by the side. Let W be the number of white cells that have at least one black neighbor adjacent by the side. A coloring is called good if B = W + 1 . The first coloring shown below has B=5 and W=4 (all cells have at least one neighbor with the opposite color). However, the second coloring is not good as it has B=4 , W=4 (only the bottom right cell doesn't have a neighbor with the opposite color). Please, help Medina to find any good coloring. It's guaranteed that under given constraints the solution always exists. If there are several solutions, output any of them. Each test contains multiple test cases. The first line contains the number of test cases t ( 1 <= t <= 20 ). Each of the next t lines contains two integers n, m ( 2 <= n,m <= 100 ) -- the number of rows and the number of columns in the grid. For each test case print n lines, each of length m , where i -th line is the i -th row of your colored matrix (cell labeled with 'B' means that the cell is black, and 'W' means white). Do not use quotes. It's guaranteed that under given constraints the solution always exists. In the first testcase, B=3 , W=2 . In the second testcase, B=5 , W=4 . You can see the coloring in the statement. "...

Tutorials

Codeforces Round #632 (Div. 2) editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
76424280 the-next-ceo A April 12, 2020, 7:34 p.m. OK Clang++17 Diagnostics TESTS 7 31 6246400
76081186 vjudge2 A April 10, 2020, 11:01 a.m. OK Clang++17 Diagnostics TESTS 6 61 0
76285894 vjudge5 A April 12, 2020, 4:52 a.m. OK Clang++17 Diagnostics TESTS 6 77 0
76299696 vjudge4 A April 12, 2020, 7:31 a.m. OK Clang++17 Diagnostics TESTS 6 77 0
76082937 Haochao A April 10, 2020, 11:21 a.m. OK Clang++17 Diagnostics TESTS 6 77 0
76240985 vjudge1 A April 11, 2020, 7:07 a.m. OK Clang++17 Diagnostics TESTS 6 77 0
75976816 ruihd A April 9, 2020, 10:05 a.m. OK Clang++17 Diagnostics TESTS 6 77 2048000
76241023 vjudge1 A April 11, 2020, 7:07 a.m. OK Clang++17 Diagnostics TESTS 6 78 0
76077834 vjudge2 A April 10, 2020, 10:17 a.m. OK Clang++17 Diagnostics TESTS 6 78 0
76238289 vjudge1 A April 11, 2020, 6:31 a.m. OK Clang++17 Diagnostics TESTS 6 78 0
75941558 fpc_coder A April 9, 2020, 1:32 a.m. OK FPC TESTS 6 529 0
75945179 tailorian A April 9, 2020, 2:59 a.m. OK GNU C11 TESTS 6 15 0
75946493 maer19980918 A April 9, 2020, 3:27 a.m. OK GNU C11 TESTS 6 15 204800
76349454 HorizonX A April 12, 2020, 2:24 p.m. OK GNU C11 TESTS 6 30 0
76433508 HorizonX A April 12, 2020, 10:15 p.m. OK GNU C11 TESTS 7 30 0
76093793 vladislav_k A April 10, 2020, 1:24 p.m. OK GNU C11 TESTS 6 31 0
75904133 rainboy A April 8, 2020, 4:20 p.m. OK GNU C11 TESTS 6 31 0
75940634 hnust_tanzhongsheng A April 9, 2020, 1:08 a.m. OK GNU C11 TESTS 6 296 0
75961716 happyguy89 A April 9, 2020, 7:13 a.m. OK GNU C11 TESTS 6 546 0
76284343 lifers A April 12, 2020, 4:24 a.m. OK GNU C11 TESTS 6 546 0
76302691 sholinghur_pooja A April 12, 2020, 8:02 a.m. OK GNU C11 TESTS 6 561 0
76077194 Islav03 A April 10, 2020, 10:10 a.m. OK GNU C++11 TESTS 6 15 0
76069184 Alcremie A April 10, 2020, 8:22 a.m. OK GNU C++11 TESTS 6 15 0
76056713 Kontol A April 10, 2020, 5:19 a.m. OK GNU C++11 TESTS 6 15 0
76039850 jkaus A April 9, 2020, 9:25 p.m. OK GNU C++11 TESTS 6 15 0
76078166 singhshivam78859 A April 10, 2020, 10:22 a.m. OK GNU C++11 TESTS 6 15 0
76299588 bhardwajarpit1998 A April 12, 2020, 7:29 a.m. OK GNU C++11 TESTS 6 15 0
76322696 vjudge1 A April 12, 2020, 12:10 p.m. OK GNU C++11 TESTS 6 15 0
76427015 Abohessuin A April 12, 2020, 8:11 p.m. OK GNU C++11 TESTS 7 15 0
76427830 AhmedElsherbiny A April 12, 2020, 8:24 p.m. OK GNU C++11 TESTS 7 15 0
76441136 zxjls A April 13, 2020, 1:54 a.m. OK GNU C++11 TESTS 7 15 0
76333877 AC_sahER A April 12, 2020, 2:07 p.m. OK GNU C++14 TESTS 6 15 0
76444537 imran0001 A April 13, 2020, 3:17 a.m. OK GNU C++14 TESTS 7 15 0
76323722 inevitable_wulf A April 12, 2020, 12:21 p.m. OK GNU C++14 TESTS 6 15 0
76324883 Reast1nPeace A April 12, 2020, 12:34 p.m. OK GNU C++14 TESTS 6 15 0
76321124 yash_257 A April 12, 2020, 11:46 a.m. OK GNU C++14 TESTS 6 15 0
76317211 surajkannaujia A April 12, 2020, 10:38 a.m. OK GNU C++14 TESTS 6 15 0
76312252 MediationalField A April 12, 2020, 9:45 a.m. OK GNU C++14 TESTS 6 15 0
76305464 shivamsachan142 A April 12, 2020, 8:31 a.m. OK GNU C++14 TESTS 6 15 0
76285539 Dirii A April 12, 2020, 4:46 a.m. OK GNU C++14 TESTS 6 15 0
76273634 gouh9qn A April 11, 2020, 11:50 p.m. OK GNU C++14 TESTS 6 15 0
76332932 RafaelPanisset A April 12, 2020, 1:57 p.m. OK GNU C++17 TESTS 6 15 0
76423779 peuch A April 12, 2020, 7:28 p.m. OK GNU C++17 TESTS 7 15 0
76404664 heisenberf A April 12, 2020, 4:09 p.m. OK GNU C++17 TESTS 7 15 0
76399986 ERROR... A April 12, 2020, 3:57 p.m. OK GNU C++17 TESTS 6 15 0
76366360 Kmistry A April 12, 2020, 2:48 p.m. OK GNU C++17 TESTS 6 15 0
76333622 pamho108 A April 12, 2020, 2:04 p.m. OK GNU C++17 TESTS 6 15 0
76324603 Homo_sapiens_MAX A April 12, 2020, 12:31 p.m. OK GNU C++17 TESTS 6 15 0
76320154 igorqs A April 12, 2020, 11:28 a.m. OK GNU C++17 TESTS 6 15 0
76315563 vjudge5 A April 12, 2020, 10:18 a.m. OK GNU C++17 TESTS 6 15 0
76315311 vjudge1 A April 12, 2020, 10:15 a.m. OK GNU C++17 TESTS 6 15 0
76013524 i_o__o_i A April 9, 2020, 4:21 p.m. OK GNU C++17 (64) TESTS 6 15 0
76041588 neal A April 9, 2020, 9:59 p.m. OK GNU C++17 (64) TESTS 6 15 0
76090406 vjudge4 A April 10, 2020, 12:47 p.m. OK GNU C++17 (64) TESTS 6 15 0
76091646 FlowerOfSorrow A April 10, 2020, 1:01 p.m. OK GNU C++17 (64) TESTS 6 15 0
76097509 PiBi A April 10, 2020, 2:02 p.m. OK GNU C++17 (64) TESTS 6 15 0
76221456 agul A April 11, 2020, 12:07 a.m. OK GNU C++17 (64) TESTS 6 15 0
76245556 vjudge5 A April 11, 2020, 8:06 a.m. OK GNU C++17 (64) TESTS 6 15 0
76254189 ASS_ASS_IN A April 11, 2020, 5:56 p.m. OK GNU C++17 (64) TESTS 6 15 0
76256265 mtcomscxstart A April 11, 2020, 6:36 p.m. OK GNU C++17 (64) TESTS 6 15 0
76437869 gxucm A April 13, 2020, 12:20 a.m. OK GNU C++17 (64) TESTS 7 15 0
75936779 TadijaSebez A April 8, 2020, 11:12 p.m. OK Go TESTS 6 31 0
75952540 s00b A April 9, 2020, 5:20 a.m. OK Go TESTS 6 46 102400
75929531 Perman A April 8, 2020, 8:34 p.m. OK Go TESTS 6 560 0
75924411 geomslayer A April 8, 2020, 7:23 p.m. OK Go TESTS 6 576 0
75986127 snnu_Maxwell A April 9, 2020, 11:51 a.m. OK Go TESTS 6 607 0
75963974 Musin A April 9, 2020, 7:37 a.m. OK Java 11 TESTS 6 140 0
76260003 Baroudy A April 11, 2020, 7:24 p.m. OK Java 11 TESTS 6 155 0
75980035 Mann_27__ A April 9, 2020, 10:42 a.m. OK Java 11 TESTS 6 155 0
76031923 Clowyy A April 9, 2020, 7:21 p.m. OK Java 11 TESTS 6 156 0
76033677 bhautik_77 A April 9, 2020, 7:44 p.m. OK Java 11 TESTS 6 170 0
75937313 happy15 A April 8, 2020, 11:30 p.m. OK Java 11 TESTS 6 171 0
75921034 Dukkha A April 8, 2020, 6:47 p.m. OK Java 11 TESTS 6 186 0
76238002 nickleoden299 A April 11, 2020, 6:26 a.m. OK Java 11 TESTS 6 186 0
76031899 bckslsh03 A April 9, 2020, 7:21 p.m. OK Java 11 TESTS 6 186 0
76027424 pennyIsLove A April 9, 2020, 6:28 p.m. OK Java 11 TESTS 6 187 0
75908887 tuper_man A April 8, 2020, 4:29 p.m. OK Java 8 TESTS 6 77 0
75957431 up_surge A April 9, 2020, 6:25 a.m. OK Java 8 TESTS 6 78 0
75956140 dgCoder A April 9, 2020, 6:09 a.m. OK Java 8 TESTS 6 93 0
76013543 di_halt A April 9, 2020, 4:22 p.m. OK Java 8 TESTS 6 93 0
76049644 seyerman A April 10, 2020, 2:27 a.m. OK Java 8 TESTS 6 93 0
76028993 Devil__ A April 9, 2020, 6:45 p.m. OK Java 8 TESTS 6 108 0
76053716 anilsaxena A April 10, 2020, 4:11 a.m. OK Java 8 TESTS 6 108 0
76025069 In_The_Name_Of_Love A April 9, 2020, 6:03 p.m. OK Java 8 TESTS 6 108 0
75993712 Bisoye A April 9, 2020, 1:14 p.m. OK Java 8 TESTS 6 108 0
75971275 kengima A April 9, 2020, 9:01 a.m. OK Java 8 TESTS 6 108 0
76052297 todayplusplus A April 10, 2020, 3:37 a.m. OK JavaScript TESTS 6 30 0
75973385 NguyenHungCuong A April 9, 2020, 9:25 a.m. OK JavaScript TESTS 6 31 0
75989821 Tangerine A April 9, 2020, 12:31 p.m. OK JavaScript TESTS 6 31 1228800
75954723 Spheniscine A April 9, 2020, 5:51 a.m. OK Kotlin TESTS 6 124 0
75926654 melnikova.myu A April 8, 2020, 7:53 p.m. OK Mono C# TESTS 6 46 614400
75904815 riantkb A April 8, 2020, 4:21 p.m. OK Mono C# TESTS 6 46 1126400
75950252 shy3205 A April 9, 2020, 4:44 a.m. OK Mono C# TESTS 6 62 4300800
75963075 calabash_boy A April 9, 2020, 7:27 a.m. OK Mono C# TESTS 6 561 0
75986281 TRR A April 9, 2020, 11:53 a.m. OK Mono C# TESTS 6 576 0
76037168 kilicars A April 9, 2020, 8:38 p.m. OK Mono C# TESTS 6 576 3584000
76096202 ellip A April 10, 2020, 1:49 p.m. OK Mono C# TESTS 6 576 3584000
76304267 vjudge3 A April 12, 2020, 8:19 a.m. OK MS C++ TESTS 6 30 0
76323346 ldcdm A April 12, 2020, 12:17 p.m. OK MS C++ TESTS 6 31 0
76241038 vjudge5 A April 11, 2020, 7:07 a.m. OK MS C++ TESTS 6 31 0
76088967 vjudge5 A April 10, 2020, 12:31 p.m. OK MS C++ TESTS 6 31 0
76079256 vjudge5 A April 10, 2020, 10:36 a.m. OK MS C++ TESTS 6 46 0
76312709 vjudge4 A April 12, 2020, 9:49 a.m. OK MS C++ TESTS 6 46 0
76245867 vjudge5 A April 11, 2020, 8:11 a.m. OK MS C++ 2017 TESTS 6 15 0
76284124 vjudge2 A April 12, 2020, 4:20 a.m. OK MS C++ 2017 TESTS 6 15 0
75946953 skymin A April 9, 2020, 3:36 a.m. OK MS C++ 2017 TESTS 6 15 307200
76093617 jdyj A April 10, 2020, 1:22 p.m. OK MS C++ 2017 TESTS 6 30 0
76322835 sakuraOvO A April 12, 2020, 12:12 p.m. OK MS C++ 2017 TESTS 6 30 0
76283854 vjudge4 A April 12, 2020, 4:15 a.m. OK MS C++ 2017 TESTS 6 30 0
76240832 vjudge2 A April 11, 2020, 7:05 a.m. OK MS C++ 2017 TESTS 6 30 0
76236637 vjudge1 A April 11, 2020, 6:05 a.m. OK MS C++ 2017 TESTS 6 30 0
76072742 vjudge2 A April 10, 2020, 9:12 a.m. OK MS C++ 2017 TESTS 6 30 0
75910686 MoSt3fa A April 8, 2020, 4:32 p.m. OK MS C++ 2017 TESTS 6 30 0
76073479 vixenn A April 10, 2020, 9:21 a.m. OK Node.js TESTS 6 170 5324800
76035203 vixenn A April 9, 2020, 8:07 p.m. OK Node.js TESTS 6 171 4710400
76032292 vixenn A April 9, 2020, 7:27 p.m. OK Node.js TESTS 6 186 4403200
76072743 vixenn A April 10, 2020, 9:12 a.m. OK Node.js TESTS 6 186 4710400
75998114 lethehaiau A April 9, 2020, 1:58 p.m. OK Node.js TESTS 6 202 1126400
75909458 NprogZR A April 8, 2020, 4:31 p.m. OK PascalABC.NET TESTS 6 919 102400
75906717 NZRprog A April 8, 2020, 4:25 p.m. OK PascalABC.NET TESTS 6 936 102400
76019897 mayakin A April 9, 2020, 5:16 p.m. OK PHP TESTS 6 31 0
76026273 shaunhossain A April 9, 2020, 6:16 p.m. OK PHP TESTS 6 561 512000
76013200 11fingers A April 9, 2020, 4:19 p.m. OK PyPy 2 TESTS 6 139 1843200
75932884 realnimish A April 8, 2020, 9:33 p.m. OK PyPy 2 TESTS 6 155 1740800
75964037 Suprajeeth A April 9, 2020, 7:38 a.m. OK PyPy 3 TESTS 6 139 102400
75922839 WA-----Me-----AC A April 8, 2020, 7:05 p.m. OK PyPy 3 TESTS 6 139 2662400
75943134 ecnerwala A April 9, 2020, 2:14 a.m. OK PyPy 3 TESTS 6 140 102400
75974407 tissue_eater64 A April 9, 2020, 9:37 a.m. OK PyPy 3 TESTS 6 140 204800
75955713 mathyoda A April 9, 2020, 6:04 a.m. OK PyPy 3 TESTS 6 140 204800
76223154 mudit481 A April 11, 2020, 12:59 a.m. OK PyPy 3 TESTS 6 140 1638400
75949211 diffeo A April 9, 2020, 4:24 a.m. OK PyPy 3 TESTS 6 140 1945600
75996239 m_f_h A April 9, 2020, 1:40 p.m. OK PyPy 3 TESTS 6 140 2662400
75925118 deepanshu_pali A April 8, 2020, 7:32 p.m. OK PyPy 3 TESTS 6 140 2662400
76057072 EmON_IIT11 A April 10, 2020, 5:26 a.m. OK PyPy 3 TESTS 6 140 2764800
76031289 elistark A April 9, 2020, 7:14 p.m. OK Python 2 TESTS 6 171 0
76051689 code_marshal A April 10, 2020, 3:22 a.m. OK Python 2 TESTS 6 202 102400
76377549 anil_111 A April 12, 2020, 3:07 p.m. OK Python 3 TESTS 6 93 0
76368986 anil_111 A April 12, 2020, 2:52 p.m. OK Python 3 TESTS 6 93 0
76253805 hitthheerree A April 11, 2020, 5:45 p.m. OK Python 3 TESTS 6 93 0
76249983 the_distortion A April 11, 2020, 12:53 p.m. OK Python 3 TESTS 6 93 0
76079412 hemanntth__5 A April 10, 2020, 10:38 a.m. OK Python 3 TESTS 6 93 0
76048201 LethalPuppy A April 10, 2020, 1:41 a.m. OK Python 3 TESTS 6 93 0
76025741 illantalex A April 9, 2020, 6:10 p.m. OK Python 3 TESTS 6 93 0
76015412 Evilknight A April 9, 2020, 4:39 p.m. OK Python 3 TESTS 6 93 0
75992600 srinivasmathur A April 9, 2020, 1:01 p.m. OK Python 3 TESTS 6 93 0
75991717 Lei-Xiaodong A April 9, 2020, 12:52 p.m. OK Python 3 TESTS 6 93 0
76093857 tbogus A April 10, 2020, 1:24 p.m. OK Ruby TESTS 6 61 307200
75925523 IvanDyachenko A April 8, 2020, 7:38 p.m. OK Scala TESTS 6 499 102400
75909353 IvanDyachenko A April 8, 2020, 4:30 p.m. OK Scala TESTS 6 529 102400

remove filters

Back to search problems