Codeforces Round 551 (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
1153 Codeforces Round 551 (Div. 2) FINISHED False 7200 176658899 April 13, 2019, 2:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 9093 ) B Serval and Toy Bricks PROGRAMMING constructive algorithms greedy 1200

B"Luckily, Serval got onto the right bus, and he came to the kindergarten on time. After coming to kindergarten, he found the toy bricks very funny. He has a special interest to create difficult problems for others to solve. This time, with many 1 x 1 x 1 toy bricks, he builds up a 3-dimensional object. We can describe this object with a n x m matrix, such that in each cell (i,j) , there are h_{i,j} bricks standing on the top of each other. However, Serval doesn't give you any h_{i,j} , and just give you the front view, left view, and the top view of this object, and he is now asking you to restore the object. Note that in the front view, there are m columns, and in the i -th of them, the height is the maximum of h_{1,i},h_{2,i}, ... ,h_{n,i} . It is similar for the left view, where there are n columns. And in the top view, there is an n x m matrix t_{i,j} , where t_{i,j} is 0 or 1 . If t_{i,j} equals 1 , that means h_{i,j}>0 , otherwise, h_{i,j}=0 . However, Serval is very lonely because others are bored about his unsolvable problems before, and refused to solve this one, although this time he promises there will be at least one object satisfying all the views. As his best friend, can you have a try? The first line contains three positive space-separated integers n, m, h ( 1 <= q n, m, h <= q 100 ) -- the length, width and height. The second line contains m non-negative space-separated integers a_1,a_2, ... ,a_m , where a_i is the height in the i -th column from left to right of the front view ( 0 <= q a_i <= q h ). The third line contains n non-negative space-separated integers b_1,b_2, ... ,b_n ( 0 <= q b_j <= q h ), where b_j is the height in the j -th column from left to right of the left view. Each of the following n lines contains m numbers, each is 0 or $"...

Tutorials

Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
52712399 daut-dlang B April 13, 2019, 3:58 p.m. OK D TESTS 62 31 0 1200
52704235 iica B April 13, 2019, 3:16 p.m. OK D TESTS 62 31 102400 1200
52778927 Denor B April 15, 2019, 1:17 p.m. OK Delphi TESTS 62 31 102400 1200
53425770 samau07012005 B April 27, 2019, 1:32 p.m. OK FPC TESTS 62 62 102400 1200
52707208 bao-gpmn B April 13, 2019, 3:31 p.m. OK FPC TESTS 62 62 102400 1200
52711659 PAG B April 13, 2019, 3:54 p.m. OK FPC TESTS 62 62 204800 1200
52709070 Lososus B April 13, 2019, 3:40 p.m. OK FPC TESTS 62 62 307200 1200
52705509 i9code B April 13, 2019, 3:22 p.m. OK FPC TESTS 62 62 80588800 1200
52709721 hkwalker B April 13, 2019, 3:44 p.m. OK FPC TESTS 62 77 307200 1200
52705025 Oompaloompa B April 13, 2019, 3:20 p.m. OK FPC TESTS 62 77 3993600 1200
52698245 Craspedacusta B April 13, 2019, 2:50 p.m. OK FPC TESTS 62 93 307200 1200
53469070 sansen B April 28, 2019, 11:48 a.m. OK GNU C11 TESTS 62 31 102400 1200
52729373 RavenHearst B April 14, 2019, 3 a.m. OK GNU C11 TESTS 62 61 0 1200
52760937 Subraman B April 14, 2019, 8:40 p.m. OK GNU C11 TESTS 62 61 0 1200
52907744 harshy22 B April 17, 2019, 1:12 p.m. OK GNU C11 TESTS 62 61 102400 1200
56286411 ash123456 B June 29, 2019, 7:53 p.m. OK GNU C11 TESTS 62 62 0 1200
56286422 ash070397 B June 29, 2019, 7:54 p.m. OK GNU C11 TESTS 62 62 0 1200
56857351 kaiboy B July 11, 2019, 7:16 p.m. OK GNU C11 TESTS 62 62 0 1200
52870636 vjudge1 B April 16, 2019, 5:26 p.m. OK GNU C11 TESTS 62 62 0 1200
53078359 Shoaib_099 B April 21, 2019, 4:11 a.m. OK GNU C11 TESTS 62 62 0 1200
54447543 NoSoul B May 21, 2019, 12:04 p.m. OK GNU C11 TESTS 62 62 0 1200
54503061 linzheng_m B May 23, 2019, 12:40 a.m. OK GNU C++11 TESTS 62 31 0 1200
65266883 Ifugao B Nov. 17, 2019, 5:31 p.m. OK GNU C++11 TESTS 62 31 0 1200
54506517 chhokmah B May 23, 2019, 4:21 a.m. OK GNU C++11 TESTS 62 31 0 1200
54505716 lukelin B May 23, 2019, 3:36 a.m. OK GNU C++11 TESTS 62 31 0 1200
54759607 bakpark B May 28, 2019, 3:32 p.m. OK GNU C++11 TESTS 62 31 0 1200
56555995 slowman B July 5, 2019, 12:23 p.m. OK GNU C++11 TESTS 62 31 0 1200
56758654 vjudge4 B July 9, 2019, 2:55 p.m. OK GNU C++11 TESTS 62 31 0 1200
60058814 LittleBeetle B Sept. 5, 2019, 5:54 a.m. OK GNU C++11 TESTS 62 31 0 1200
60624900 yu__xuan B Sept. 15, 2019, 11:43 a.m. OK GNU C++11 TESTS 62 31 0 1200
61707888 xiji233 B Oct. 2, 2019, 10:40 a.m. OK GNU C++11 TESTS 62 31 0 1200
54237623 Bignubie B May 16, 2019, 11:31 a.m. OK GNU C++14 TESTS 62 15 0 1200
53700838 hellogaon B May 3, 2019, 10:18 a.m. OK GNU C++14 TESTS 62 15 102400 1200
52722660 Psycho_MG_Hunter B April 13, 2019, 8:53 p.m. OK GNU C++14 TESTS 62 15 204800 1200
53221492 shumi B April 24, 2019, 12:05 p.m. OK GNU C++14 TESTS 62 30 0 1200
56986508 abhishek_987 B July 13, 2019, 4:02 p.m. OK GNU C++14 TESTS 62 30 0 1200
54887721 VladProg B May 31, 2019, 6:22 p.m. OK GNU C++14 TESTS 62 30 0 1200
54011491 vjudge2 B May 12, 2019, 2:49 a.m. OK GNU C++14 TESTS 62 30 0 1200
53190883 Muthusk B April 23, 2019, 12:48 p.m. OK GNU C++14 TESTS 62 30 0 1200
52955549 SongP B April 18, 2019, 1:37 p.m. OK GNU C++14 TESTS 62 30 0 1200
52930480 SalePark B April 18, 2019, 1:27 a.m. OK GNU C++14 TESTS 62 30 0 1200
52726807 Lannister B April 14, 2019, 1:15 a.m. OK GNU C++17 TESTS 62 15 204800 1200
52746562 sprkgoyal B April 14, 2019, 11:58 a.m. OK GNU C++17 TESTS 62 30 0 1200
52747353 sillentKiller B April 14, 2019, 12:21 p.m. OK GNU C++17 TESTS 62 30 0 1200
52775101 ladycoco B April 15, 2019, 11:36 a.m. OK GNU C++17 TESTS 62 30 0 1200
52788619 not_so_cool_handle B April 15, 2019, 4:01 p.m. OK GNU C++17 TESTS 62 30 0 1200
52918074 kozartaeneung B April 17, 2019, 4:38 p.m. OK GNU C++17 TESTS 62 30 0 1200
53024013 ikolcov B April 19, 2019, 6 p.m. OK GNU C++17 TESTS 62 30 0 1200
53894887 Mastre B May 9, 2019, 4:58 a.m. OK GNU C++17 TESTS 62 30 0 1200
53959816 jspark B May 10, 2019, 1:33 p.m. OK GNU C++17 TESTS 62 30 0 1200
65581814 happy_ B Nov. 23, 2019, 11:15 a.m. OK GNU C++17 TESTS 62 30 102400 1200
52710965 yuki2006 B April 13, 2019, 3:50 p.m. OK Go TESTS 62 31 0 1200
52774066 2008061626 B April 15, 2019, 10:59 a.m. OK Go TESTS 62 77 0 1200
52705491 b41sh B April 13, 2019, 3:22 p.m. OK Go TESTS 62 109 716800 1200
53316612 Laurens B April 26, 2019, 10:42 a.m. OK Haskell TESTS 62 46 102400 1200
67848780 lightseba B Dec. 29, 2019, 12:28 a.m. OK Java 11 TESTS 62 218 0 1200
55982961 Seco_seco B June 23, 2019, 11:31 p.m. OK Java 8 TESTS 62 109 0 1200
53899386 Lovinix B May 9, 2019, 8:13 a.m. OK Java 8 TESTS 62 109 0 1200
60270263 sameer_hack B Sept. 8, 2019, 3:09 p.m. OK Java 8 TESTS 62 124 0 1200
59684776 ijxjdjd B Aug. 30, 2019, 12:11 a.m. OK Java 8 TESTS 62 124 0 1200
57644745 akshay2301 B July 24, 2019, 1:51 p.m. OK Java 8 TESTS 62 124 0 1200
56632202 shivendra12119 B July 6, 2019, 5:05 p.m. OK Java 8 TESTS 62 124 0 1200
56537724 garnacha B July 5, 2019, 2:29 a.m. OK Java 8 TESTS 62 124 0 1200
56053954 Sleeperino B June 25, 2019, 9:19 p.m. OK Java 8 TESTS 62 124 0 1200
54568001 ankurdua15 B May 24, 2019, 5:34 p.m. OK Java 8 TESTS 62 124 0 1200
53883940 azhar556 B May 8, 2019, 4:43 p.m. OK Java 8 TESTS 62 124 0 1200
52698385 orazbek B April 13, 2019, 2:50 p.m. OK JavaScript TESTS 62 46 307200 1200
60383035 Spheniscine B Sept. 11, 2019, 10:12 a.m. OK Kotlin TESTS 62 155 102400 1200
52706124 Bobko B April 13, 2019, 3:25 p.m. OK Kotlin TESTS 62 218 204800 1200
52771265 omikad B April 15, 2019, 8:58 a.m. OK Mono C# TESTS 62 61 1945600 1200
54964131 og.kostya B June 2, 2019, 5:32 a.m. OK Mono C# TESTS 62 62 204800 1200
54664984 treasuryonly B May 26, 2019, 12:50 p.m. OK Mono C# TESTS 62 62 819200 1200
52718800 Zedronar B April 13, 2019, 6:38 p.m. OK Mono C# TESTS 62 62 4608000 1200
52707908 ilia.kot B April 13, 2019, 3:34 p.m. OK Mono C# TESTS 62 62 6656000 1200
52870212 Favarish B April 16, 2019, 5:19 p.m. OK Mono C# TESTS 62 77 819200 1200
53675621 buklyakey B May 2, 2019, 3:40 p.m. OK Mono C# TESTS 62 77 921600 1200
52910688 camypaper B April 17, 2019, 2:01 p.m. OK Mono C# TESTS 62 77 4915200 1200
52701495 amit1509kumar B April 13, 2019, 3:04 p.m. OK Mono C# TESTS 62 92 921600 1200
52776396 fr0st B April 15, 2019, 12:12 p.m. OK Mono C# TESTS 62 92 71884800 1200
54024468 vjudge1 B May 12, 2019, 11:44 a.m. OK MS C++ TESTS 62 31 0 1200
52747486 vjudge4 B April 14, 2019, 12:24 p.m. OK MS C++ TESTS 62 31 0 1200
61217347 vjudge2 B Sept. 24, 2019, 1:04 p.m. OK MS C++ TESTS 62 31 102400 1200
55300779 vjudge4 B June 8, 2019, 11:56 a.m. OK MS C++ TESTS 62 31 102400 1200
55300754 vjudge2 B June 8, 2019, 11:56 a.m. OK MS C++ TESTS 62 31 102400 1200
54279764 vjudge5 B May 17, 2019, 12:51 p.m. OK MS C++ TESTS 62 31 102400 1200
54057923 vjudge5 B May 13, 2019, 9:27 a.m. OK MS C++ TESTS 62 31 102400 1200
54025681 vjudge4 B May 12, 2019, 12:26 p.m. OK MS C++ TESTS 62 31 102400 1200
54010616 vjudge4 B May 12, 2019, 1:54 a.m. OK MS C++ TESTS 62 31 102400 1200
65480920 vjudge5 B Nov. 21, 2019, 11:39 a.m. OK MS C++ TESTS 62 31 102400 1200
52706777 YCB009 B April 13, 2019, 3:28 p.m. OK MS C++ 2017 TESTS 62 31 102400 1200
52707278 guitar_her B April 13, 2019, 3:31 p.m. OK MS C++ 2017 TESTS 62 31 102400 1200
52753924 work_hard. B April 14, 2019, 3:38 p.m. OK MS C++ 2017 TESTS 62 31 102400 1200
52775439 AleXandrite B April 15, 2019, 11:46 a.m. OK MS C++ 2017 TESTS 62 31 102400 1200
52809097 GOATWU B April 16, 2019, 7:20 a.m. OK MS C++ 2017 TESTS 62 31 102400 1200
52824468 Sem_1337 B April 16, 2019, 1:14 p.m. OK MS C++ 2017 TESTS 62 31 102400 1200
53020994 CtrlAlt B April 19, 2019, 4:27 p.m. OK MS C++ 2017 TESTS 62 31 102400 1200
53704279 R99 B May 3, 2019, 12:24 p.m. OK MS C++ 2017 TESTS 62 31 102400 1200
58248575 ZSTU-2018329621261 B Aug. 4, 2019, 6:43 a.m. OK MS C++ 2017 TESTS 62 31 102400 1200
61801239 Boryan07 B Oct. 3, 2019, 7:04 p.m. OK MS C++ 2017 TESTS 62 31 102400 1200
53483940 kidkkr B April 29, 2019, 12:24 a.m. OK Node.js TESTS 62 202 1433600 1200
52700503 aeloud B April 13, 2019, 2:59 p.m. OK Node.js TESTS 62 233 2150400 1200
53828968 Houy3 B May 6, 2019, 6:21 p.m. OK PascalABC.NET TESTS 62 374 716800 1200
52704167 LaSWeeG B April 13, 2019, 3:16 p.m. OK PascalABC.NET TESTS 62 404 614400 1200
52701744 vyacheslavovich B April 13, 2019, 3:05 p.m. OK PascalABC.NET TESTS 62 436 102400 1200
55539759 mayakin B June 13, 2019, 6:50 p.m. OK PHP TESTS 62 46 0 1200
52716762 CrazyDr B April 13, 2019, 5:43 p.m. OK PHP TESTS 62 78 512000 1200
54264453 allonsy_kim B May 17, 2019, 4:53 a.m. OK PyPy 2 TESTS 62 140 614400 1200
57473622 wolffd B July 21, 2019, 7:44 p.m. OK PyPy 2 TESTS 62 140 716800 1200
52933469 Mukundan314 B April 18, 2019, 4:38 a.m. OK PyPy 2 TESTS 62 140 921600 1200
54265028 supersangjin B May 17, 2019, 5:19 a.m. OK PyPy 2 TESTS 62 155 512000 1200
52933333 Mukundan314 B April 18, 2019, 4:30 a.m. OK PyPy 2 TESTS 62 155 716800 1200
52715673 makkader B April 13, 2019, 5:25 p.m. OK PyPy 2 TESTS 62 156 1740800 1200
52715522 makkader B April 13, 2019, 5:24 p.m. OK PyPy 2 TESTS 62 171 2150400 1200
53224193 thenewguy39 B April 24, 2019, 1:29 p.m. OK PyPy 2 TESTS 62 249 7782400 1200
52788148 dilesh.yadav.phe16 B April 15, 2019, 3:45 p.m. OK PyPy 3 TESTS 62 140 1126400 1200
52727492 yfo B April 14, 2019, 1:50 a.m. OK PyPy 3 TESTS 62 155 716800 1200
52754110 Hokage777 B April 14, 2019, 3:44 p.m. OK PyPy 3 TESTS 62 155 819200 1200
52699855 Spelvin B April 13, 2019, 2:56 p.m. OK PyPy 3 TESTS 62 170 614400 1200
53001383 glucose B April 19, 2019, 7:17 a.m. OK PyPy 3 TESTS 62 170 2150400 1200
52702284 snu_pick B April 13, 2019, 3:07 p.m. OK PyPy 3 TESTS 62 171 1126400 1200
52698758 dizballanze B April 13, 2019, 2:52 p.m. OK PyPy 3 TESTS 62 171 1228800 1200
54990323 guardian.of.gods99 B June 2, 2019, 6:18 p.m. OK PyPy 3 TESTS 62 171 2150400 1200
52754585 11th younes38 B April 14, 2019, 4:01 p.m. OK PyPy 3 TESTS 62 171 2150400 1200
52754095 kbats183 B April 14, 2019, 3:44 p.m. OK PyPy 3 TESTS 62 171 2150400 1200
52899541 Saurabh66 B April 17, 2019, 10:33 a.m. OK Python 2 TESTS 62 171 102400 1200
52765805 nealzane B April 15, 2019, 3:20 a.m. OK Python 2 TESTS 62 187 102400 1200
52748724 Cifko B April 14, 2019, 12:57 p.m. OK Python 2 TESTS 62 187 102400 1200
52719790 Helli.code B April 13, 2019, 7:08 p.m. OK Python 2 TESTS 62 187 102400 1200
52710795 kaif_7 B April 13, 2019, 3:49 p.m. OK Python 2 TESTS 62 202 204800 1200
52713751 XCapricornus B April 13, 2019, 4:04 p.m. OK Python 2 TESTS 62 217 102400 1200
52699230 tangchuanxin B April 13, 2019, 2:54 p.m. OK Python 2 TESTS 62 233 204800 1200
53013221 gatsko B April 19, 2019, 1:01 p.m. OK Python 2 TESTS 62 280 5324800 1200
52941043 changhc B April 18, 2019, 9:15 a.m. OK Python 3 TESTS 62 109 307200 1200
52718960 michael.dotsenko B April 13, 2019, 6:43 p.m. OK Python 3 TESTS 62 109 409600 1200
58304795 nikitha_pyata B Aug. 4, 2019, 6:50 p.m. OK Python 3 TESTS 62 124 0 1200
54369365 kenma B May 19, 2019, 5:42 a.m. OK Python 3 TESTS 62 124 0 1200
52940761 Dowlet.A B April 18, 2019, 9:06 a.m. OK Python 3 TESTS 62 124 0 1200
52818647 katalama B April 16, 2019, 10:53 a.m. OK Python 3 TESTS 62 124 0 1200
52754763 spikh B April 14, 2019, 4:07 p.m. OK Python 3 TESTS 62 124 0 1200
52754529 Shadow377 B April 14, 2019, 3:59 p.m. OK Python 3 TESTS 62 124 0 1200
52716704 0x8b B April 13, 2019, 5:42 p.m. OK Python 3 TESTS 62 124 0 1200
53261563 kp_2141 B April 24, 2019, 7:49 p.m. OK Python 3 TESTS 62 124 102400 1200
52704237 rinzu B April 13, 2019, 3:16 p.m. OK Ruby TESTS 62 77 307200 1200
52750494 kobae964 B April 14, 2019, 1:46 p.m. OK Rust TESTS 62 46 307200 1200
62560267 yakamoto B Oct. 14, 2019, 11:46 a.m. OK Scala TESTS 62 467 0 1200
52699983 mrajesh B April 13, 2019, 2:57 p.m. OK Scala TESTS 62 529 0 1200
52706421 nafeezabrar B April 13, 2019, 3:27 p.m. OK Scala TESTS 62 592 0 1200

remove filters

Back to search problems