Codeforces Round 444 (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
887 Codeforces Round 444 (Div. 2) FINISHED False 9000 222098099 Nov. 3, 2017, 4:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 5641 ) B Cubes for Masha PROGRAMMING brute force implementation 1300

B"Absent-minded Masha got set of n cubes for her birthday. At each of 6 faces of each cube, there is exactly one digit from 0 to 9. Masha became interested what is the largest natural x such she can make using her new cubes all integers from 1 to x. To make a number Masha can rotate her cubes and put them in a row. After that, she looks at upper faces of cubes from left to right and reads the number. The number can't contain leading zeros. It's not required to use all cubes to build a number. Pay attention: Masha can't make digit 6 from digit 9 and vice-versa using cube rotations. In first line integer n is given (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x893) -- the number of cubes, Masha got for her birthday. Each of next n lines contains 6 integers aij (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89aij xe2 x80 x89 xe2 x89 xa4 xe2 x80 x899) -- number on j-th face of i-th cube. Print single integer -- maximum number x such Masha can make any integers from 1 to x using her cubes or 0 if Masha can't make even 1. In the first test case, Masha can build all numbers from 1 to 87, but she can't make 88 because there are no two cubes with digit 8. "...

Tutorials

Codeforces Round #444 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
40101688 vjudge5 B July 9, 2018, 5:48 a.m. OK Clang++17 Diagnostics TESTS 96 46 0 1300
32020351 ruban B Nov. 3, 2017, 4:34 p.m. OK Delphi TESTS 96 31 265420800 1300
32043948 gleb.shnshn B Nov. 4, 2017, 6:22 a.m. OK FPC TESTS 96 15 0 1300
32018871 wolfris B Nov. 3, 2017, 4:26 p.m. OK FPC TESTS 96 15 0 1300
32029012 -Fluttershy- B Nov. 3, 2017, 5:38 p.m. OK FPC TESTS 96 15 0 1300
32050201 qianzhengjie B Nov. 4, 2017, 10:51 a.m. OK FPC TESTS 96 15 0 1300
32022076 boddiul B Nov. 3, 2017, 4:43 p.m. OK FPC TESTS 96 15 0 1300
32048860 KryXtal B Nov. 4, 2017, 10:13 a.m. OK FPC TESTS 96 15 102400 1300
32019294 slavik228 B Nov. 3, 2017, 4:28 p.m. OK FPC TESTS 96 15 102400 1300
33864050 LeoPro B Jan. 2, 2018, 12:54 p.m. OK FPC TESTS 96 15 1638400 1300
35678039 TuM0xA B Feb. 25, 2018, noon OK FPC TESTS 96 15 1638400 1300
32216039 Jarazorg B Nov. 11, 2017, 9:56 a.m. OK FPC TESTS 96 30 0 1300
32420882 c-and-j B Nov. 18, 2017, 5:13 a.m. OK GNU C TESTS 96 15 0 1300
32340277 matcoder B Nov. 15, 2017, 6:29 p.m. OK GNU C TESTS 96 15 0 1300
32116458 Renata B Nov. 7, 2017, 10:39 a.m. OK GNU C TESTS 96 15 0 1300
32116402 Renata B Nov. 7, 2017, 10:36 a.m. OK GNU C TESTS 96 15 0 1300
32088812 YGFAM B Nov. 6, 2017, 7:20 a.m. OK GNU C TESTS 96 15 0 1300
32083318 Vik_pan_00 B Nov. 5, 2017, 8:24 p.m. OK GNU C TESTS 96 15 0 1300
32068115 zz_zigzag B Nov. 5, 2017, 5:10 a.m. OK GNU C TESTS 96 15 0 1300
32063054 Deido___ B Nov. 4, 2017, 8:20 p.m. OK GNU C TESTS 96 15 0 1300
32040749 gaelim B Nov. 4, 2017, 2:37 a.m. OK GNU C TESTS 96 15 0 1300
32028508 utki B Nov. 3, 2017, 5:33 p.m. OK GNU C TESTS 96 15 0 1300
32572935 vjudge2 B Nov. 23, 2017, 11:05 a.m. OK GNU C++ TESTS 96 15 0 1300
39232134 Enzyme125 B June 14, 2018, 5:29 a.m. OK GNU C++ TESTS 96 15 0 1300
32576494 qusai_houssien B Nov. 23, 2017, 1:32 p.m. OK GNU C++ TESTS 96 15 0 1300
32575363 vjudge3 B Nov. 23, 2017, 12:42 p.m. OK GNU C++ TESTS 96 15 0 1300
32573748 vjudge1 B Nov. 23, 2017, 11:42 a.m. OK GNU C++ TESTS 96 15 0 1300
32550439 vjudge3 B Nov. 22, 2017, 12:44 p.m. OK GNU C++ TESTS 96 15 0 1300
32545720 vjudge1 B Nov. 22, 2017, 9:27 a.m. OK GNU C++ TESTS 96 15 0 1300
32537656 vjudge2 B Nov. 21, 2017, 11:38 p.m. OK GNU C++ TESTS 96 15 0 1300
32537319 AC-130H B Nov. 21, 2017, 10:56 p.m. OK GNU C++ TESTS 96 15 0 1300
32528188 vjudge3 B Nov. 21, 2017, 2:30 p.m. OK GNU C++ TESTS 96 15 0 1300
32061506 newbass B Nov. 4, 2017, 6:57 p.m. OK GNU C11 TESTS 96 15 0 1300
32035587 alohamora B Nov. 3, 2017, 7:57 p.m. OK GNU C11 TESTS 96 15 0 1300
32370784 2465806616 B Nov. 17, 2017, 6:30 a.m. OK GNU C11 TESTS 96 15 102400 1300
33478861 Zihad_Bd B Dec. 21, 2017, 12:03 p.m. OK GNU C11 TESTS 96 15 1843200 1300
33053214 alexey.orlov B Dec. 9, 2017, 2:38 p.m. OK GNU C11 TESTS 96 15 1945600 1300
32032210 Learn_C B Nov. 3, 2017, 6:09 p.m. OK GNU C11 TESTS 96 30 0 1300
59679537 kaiboy B Aug. 29, 2019, 7:49 p.m. OK GNU C11 TESTS 96 31 0 1300
48292111 vjudge3 B Jan. 12, 2019, 1:14 p.m. OK GNU C11 TESTS 96 31 0 1300
59685640 kaiboy B Aug. 30, 2019, 1:12 a.m. OK GNU C11 TESTS 96 31 0 1300
59679816 kaiboy B Aug. 29, 2019, 7:57 p.m. OK GNU C11 TESTS 96 31 0 1300
32577892 201616040106 B Nov. 23, 2017, 2:28 p.m. OK GNU C++11 TESTS 96 15 0 1300
32429126 hs504 B Nov. 18, 2017, 11:35 a.m. OK GNU C++11 TESTS 96 15 0 1300
32507059 habdala70 B Nov. 20, 2017, 5:17 p.m. OK GNU C++11 TESTS 96 15 0 1300
32509433 xavier3 B Nov. 20, 2017, 7:26 p.m. OK GNU C++11 TESTS 96 15 0 1300
32514303 vjudge1 B Nov. 21, 2017, 2:14 a.m. OK GNU C++11 TESTS 96 15 0 1300
32561796 assault2 B Nov. 22, 2017, 9:09 p.m. OK GNU C++11 TESTS 96 15 0 1300
32567189 201616040106 B Nov. 23, 2017, 5:56 a.m. OK GNU C++11 TESTS 96 15 0 1300
32424698 YingCao B Nov. 18, 2017, 8:29 a.m. OK GNU C++11 TESTS 96 15 0 1300
32424360 ArchHiraku B Nov. 18, 2017, 8:14 a.m. OK GNU C++11 TESTS 96 15 0 1300
32422808 kiarash78 B Nov. 18, 2017, 6:55 a.m. OK GNU C++11 TESTS 96 15 0 1300
32575333 LMissher B Nov. 23, 2017, 12:41 p.m. OK GNU C++14 TESTS 96 15 0 1300
32574042 vjudge2 B Nov. 23, 2017, 11:53 a.m. OK GNU C++14 TESTS 96 15 0 1300
32569066 touchme-o B Nov. 23, 2017, 7:56 a.m. OK GNU C++14 TESTS 96 15 0 1300
32567598 nkang4 B Nov. 23, 2017, 6:23 a.m. OK GNU C++14 TESTS 96 15 0 1300
32566468 Jihad. B Nov. 23, 2017, 5:06 a.m. OK GNU C++14 TESTS 96 15 0 1300
32565622 Cerdore B Nov. 23, 2017, 3:45 a.m. OK GNU C++14 TESTS 96 15 0 1300
32561787 uchit B Nov. 22, 2017, 9:09 p.m. OK GNU C++14 TESTS 96 15 0 1300
32524598 BO2 B Nov. 21, 2017, 12:11 p.m. OK GNU C++14 TESTS 96 15 0 1300
32524531 akcepted B Nov. 21, 2017, 12:09 p.m. OK GNU C++14 TESTS 96 15 0 1300
32523129 anisca22 B Nov. 21, 2017, 11:18 a.m. OK GNU C++14 TESTS 96 15 0 1300
37131684 sicon54 B April 9, 2018, 9:04 p.m. OK GNU C++17 TESTS 96 15 3481600 1300
61062431 Drag_On_Fly B Sept. 22, 2019, 9:54 a.m. OK GNU C++17 TESTS 96 30 0 1300
47854307 ORION-313 B Jan. 2, 2019, 8:07 p.m. OK GNU C++17 TESTS 96 30 0 1300
39657597 Martingale B June 25, 2018, 6:20 p.m. OK GNU C++17 TESTS 96 30 0 1300
39790213 ghoast noelcowm B June 30, 2018, 7:02 a.m. OK GNU C++17 TESTS 96 30 0 1300
46563866 peti1234 B Dec. 3, 2018, 8:27 p.m. OK GNU C++17 TESTS 96 30 0 1300
39691588 joydip1234 B June 27, 2018, 5:20 a.m. OK GNU C++17 TESTS 96 30 204800 1300
42773347 I_Am_Bad B Sept. 11, 2018, 4:37 p.m. OK GNU C++17 TESTS 96 30 409600 1300
37522807 ArianB B April 21, 2018, 7:49 p.m. OK GNU C++17 TESTS 96 30 3379200 1300
38955008 BiggestPrime B June 4, 2018, 9:03 p.m. OK GNU C++17 TESTS 96 30 3481600 1300
32763494 teitoku B Nov. 29, 2017, 1:14 a.m. OK GNU C++17 Diagnostics TESTS 96 842 100454400 1300
36750046 vjudge5 B March 30, 2018, 2:37 p.m. OK GNU C++17 Diagnostics TESTS 96 951 99532800 1300
32799002 akela1101_bkp B Nov. 30, 2017, 8:09 a.m. OK GNU C++17 Diagnostics TESTS 96 998 103731200 1300
32036028 goC B Nov. 3, 2017, 8:11 p.m. OK Go TESTS 96 15 512000 1300
32023285 smalex69 B Nov. 3, 2017, 4:51 p.m. OK Go TESTS 96 15 2048000 1300
32081392 Lvadislav B Nov. 5, 2017, 5:39 p.m. OK Go TESTS 96 30 204800 1300
32086522 wack-a-mole B Nov. 6, 2017, 2:45 a.m. OK Go TESTS 96 30 307200 1300
55050310 da_201612051 B June 3, 2019, 4:12 p.m. OK Go TESTS 96 31 0 1300
32023102 CaptainChrno B Nov. 3, 2017, 4:49 p.m. OK Go TESTS 96 31 307200 1300
32133933 faultrit B Nov. 8, 2017, 5:04 a.m. OK Haskell TESTS 96 15 0 1300
32040266 Ramadoka. B Nov. 4, 2017, 1:53 a.m. OK Haskell TESTS 96 15 0 1300
68449286 Vatsal53 B Jan. 9, 2020, 1:46 p.m. OK Java 11 TESTS 96 187 0 1300
32415490 Hoda_Hisham B Nov. 17, 2017, 10:20 p.m. OK Java 8 TESTS 96 124 0 1300
55050432 da_201612051 B June 3, 2019, 4:20 p.m. OK Java 8 TESTS 96 124 0 1300
48453794 bhautik_77 B Jan. 16, 2019, 11:50 a.m. OK Java 8 TESTS 96 124 0 1300
40926541 Pratik_Rajani B July 29, 2018, 6:52 p.m. OK Java 8 TESTS 96 124 0 1300
32561312 alphacarrot B Nov. 22, 2017, 8:35 p.m. OK Java 8 TESTS 96 124 0 1300
32487811 Omegaxis213 B Nov. 20, 2017, 2:31 a.m. OK Java 8 TESTS 96 124 0 1300
32314831 v1ct0r30 B Nov. 14, 2017, 2:57 p.m. OK Java 8 TESTS 96 124 0 1300
32244546 tafit3 B Nov. 12, 2017, 1:21 p.m. OK Java 8 TESTS 96 124 0 1300
32152738 donli B Nov. 9, 2017, 7:40 a.m. OK Java 8 TESTS 96 124 0 1300
32127741 edoo97 B Nov. 7, 2017, 6:16 p.m. OK Java 8 TESTS 96 124 0 1300
32021397 Eva B Nov. 3, 2017, 4:39 p.m. OK JavaScript TESTS 96 31 614400 1300
32020874 SlavaG B Nov. 3, 2017, 4:36 p.m. OK Kotlin TESTS 96 155 409600 1300
32021789 heat_wave B Nov. 3, 2017, 4:42 p.m. OK Kotlin TESTS 96 156 0 1300
32037252 kasperskei B Nov. 3, 2017, 9:11 p.m. OK Kotlin TESTS 96 186 1228800 1300
32089420 lenguyenhung B Nov. 6, 2017, 8:09 a.m. OK MS C# TESTS 96 46 102400 1300
32058098 og.kostya B Nov. 4, 2017, 4:13 p.m. OK MS C# TESTS 96 46 102400 1300
32091495 TaHuynhTin B Nov. 6, 2017, 10:31 a.m. OK MS C# TESTS 96 46 204800 1300
32295269 Samyrai B Nov. 13, 2017, 10:22 p.m. OK MS C# TESTS 96 46 204800 1300
32061017 mohsennayyeri B Nov. 4, 2017, 6:34 p.m. OK MS C# TESTS 96 46 204800 1300
32153894 azukun B Nov. 9, 2017, 9:10 a.m. OK MS C# TESTS 96 46 512000 1300
32031458 xaku B Nov. 3, 2017, 6:01 p.m. OK MS C# TESTS 96 61 2457600 1300
32097458 Acceleratortik B Nov. 6, 2017, 1:51 p.m. OK MS C# TESTS 96 62 2457600 1300
32023369 AymanWizard B Nov. 3, 2017, 4:51 p.m. OK MS C# TESTS 96 62 2457600 1300
32019327 lionvs13 B Nov. 3, 2017, 4:28 p.m. OK MS C# TESTS 96 62 2457600 1300
32217415 multitasked B Nov. 11, 2017, 11:04 a.m. OK MS C++ TESTS 96 15 0 1300
32567178 vjudge4 B Nov. 23, 2017, 5:55 a.m. OK MS C++ TESTS 96 15 0 1300
32567154 tempera B Nov. 23, 2017, 5:54 a.m. OK MS C++ TESTS 96 15 0 1300
32184231 jcr1102592323 B Nov. 10, 2017, 2 a.m. OK MS C++ TESTS 96 15 0 1300
32144033 Hacked B Nov. 8, 2017, 6:06 p.m. OK MS C++ TESTS 96 15 0 1300
32097628 G.B. B Nov. 6, 2017, 1:59 p.m. OK MS C++ TESTS 96 15 0 1300
32058879 Sheetcode B Nov. 4, 2017, 4:54 p.m. OK MS C++ TESTS 96 15 0 1300
32045258 oraheem B Nov. 4, 2017, 7:22 a.m. OK MS C++ TESTS 96 15 0 1300
32035869 Ahmad97Da B Nov. 3, 2017, 8:06 p.m. OK MS C++ TESTS 96 15 0 1300
32027470 zyczyczyczyczyc B Nov. 3, 2017, 5:24 p.m. OK MS C++ TESTS 96 15 0 1300
54001953 max.pojidaev B May 11, 2019, 4:58 p.m. OK MS C++ 2017 TESTS 96 31 0 1300
65536523 holder94 B Nov. 22, 2019, 2:22 p.m. OK MS C++ 2017 TESTS 96 31 307200 1300
57595505 CtrlAlt B July 23, 2019, 1:48 p.m. OK MS C++ 2017 TESTS 96 46 102400 1300
32060010 jocker26 B Nov. 4, 2017, 5:48 p.m. OK PascalABC.NET TESTS 96 46 0 1300
32031321 Puding B Nov. 3, 2017, 6 p.m. OK PascalABC.NET TESTS 96 46 0 1300
32023051 Hermann_Perov B Nov. 3, 2017, 4:49 p.m. OK PascalABC.NET TESTS 96 46 102400 1300
32015741 Akulyat B Nov. 3, 2017, 4:14 p.m. OK PascalABC.NET TESTS 96 62 204800 1300
32096721 rsFalse B Nov. 6, 2017, 1:20 p.m. OK Perl TESTS 96 31 0 1300
32022077 rsFalse B Nov. 3, 2017, 4:43 p.m. OK Perl TESTS 96 46 204800 1300
32050810 mayakin B Nov. 4, 2017, 11:13 a.m. OK PHP TESTS 96 46 204800 1300
32053660 shmabulock B Nov. 4, 2017, 12:56 p.m. OK PyPy 2 TESTS 96 77 0 1300
32041098 abhigyank B Nov. 4, 2017, 3:06 a.m. OK PyPy 2 TESTS 96 77 0 1300
32022173 WyattWismer B Nov. 3, 2017, 4:44 p.m. OK PyPy 2 TESTS 96 77 0 1300
32019207 sragavan B Nov. 3, 2017, 4:28 p.m. OK PyPy 2 TESTS 96 77 0 1300
32044276 unused B Nov. 4, 2017, 6:38 a.m. OK PyPy 2 TESTS 96 77 102400 1300
32067580 nealzane B Nov. 5, 2017, 4:13 a.m. OK PyPy 2 TESTS 96 77 204800 1300
32042658 Yash_ B Nov. 4, 2017, 5:06 a.m. OK PyPy 2 TESTS 96 77 204800 1300
32022188 FatherofBenoni B Nov. 3, 2017, 4:44 p.m. OK PyPy 2 TESTS 96 77 512000 1300
32086096 CyberZHG B Nov. 6, 2017, 1:36 a.m. OK PyPy 2 TESTS 96 78 307200 1300
32038031 fortmax120 B Nov. 3, 2017, 10:03 p.m. OK PyPy 2 TESTS 96 78 1228800 1300
32184281 kek B Nov. 10, 2017, 2:08 a.m. OK PyPy 3 TESTS 96 109 307200 1300
32086008 Naoki_M B Nov. 6, 2017, 1:22 a.m. OK PyPy 3 TESTS 96 109 307200 1300
32033872 AdaLovelace B Nov. 3, 2017, 6:31 p.m. OK PyPy 3 TESTS 96 109 307200 1300
32028949 DSRub B Nov. 3, 2017, 5:37 p.m. OK PyPy 3 TESTS 96 109 307200 1300
32020981 SarasDeras B Nov. 3, 2017, 4:37 p.m. OK PyPy 3 TESTS 96 109 307200 1300
32017608 kwangg B Nov. 3, 2017, 4:21 p.m. OK PyPy 3 TESTS 96 109 307200 1300
32453818 zvv B Nov. 19, 2017, 10:34 a.m. OK PyPy 3 TESTS 96 109 23347200 1300
51223162 chielo B March 12, 2019, 1:11 p.m. OK PyPy 3 TESTS 96 124 0 1300
32031636 terpingidrat B Nov. 3, 2017, 6:03 p.m. OK PyPy 3 TESTS 96 124 307200 1300
32199254 bagar0x60 B Nov. 10, 2017, 3:37 p.m. OK PyPy 3 TESTS 96 124 409600 1300
32317455 WhatTheFua B Nov. 14, 2017, 5:30 p.m. OK Python 2 TESTS 96 62 0 1300
32281058 15927491671 B Nov. 13, 2017, 10:11 a.m. OK Python 2 TESTS 96 62 0 1300
32246542 mhorst B Nov. 12, 2017, 2:47 p.m. OK Python 2 TESTS 96 62 0 1300
32089073 franckmy B Nov. 6, 2017, 7:41 a.m. OK Python 2 TESTS 96 62 0 1300
32081884 EoinDavey B Nov. 5, 2017, 6:49 p.m. OK Python 2 TESTS 96 62 0 1300
32080794 elistark B Nov. 5, 2017, 4:40 p.m. OK Python 2 TESTS 96 62 0 1300
32073176 nadavishe B Nov. 5, 2017, 10:17 a.m. OK Python 2 TESTS 96 62 0 1300
32036118 isgulkov B Nov. 3, 2017, 8:14 p.m. OK Python 2 TESTS 96 62 0 1300
32034154 wunder9l B Nov. 3, 2017, 6:34 p.m. OK Python 2 TESTS 96 62 0 1300
32033301 mrrinat B Nov. 3, 2017, 6:23 p.m. OK Python 2 TESTS 96 62 0 1300
32538917 nathantheinventor B Nov. 22, 2017, 2:48 a.m. OK Python 3 TESTS 96 62 0 1300
32427197 YingCao B Nov. 18, 2017, 10:13 a.m. OK Python 3 TESTS 96 62 0 1300
32335655 Jerry2001 B Nov. 15, 2017, 3:20 p.m. OK Python 3 TESTS 96 62 0 1300
32154479 orailly B Nov. 9, 2017, 9:52 a.m. OK Python 3 TESTS 96 62 0 1300
32135233 Vasiliy_48 B Nov. 8, 2017, 8:18 a.m. OK Python 3 TESTS 96 62 0 1300
32106502 NiakTheWizard B Nov. 6, 2017, 10:11 p.m. OK Python 3 TESTS 96 62 0 1300
32089613 A_NEW_OUTSET B Nov. 6, 2017, 8:23 a.m. OK Python 3 TESTS 96 62 0 1300
32088568 Frankenween B Nov. 6, 2017, 6:54 a.m. OK Python 3 TESTS 96 62 0 1300
32088518 mpcque B Nov. 6, 2017, 6:49 a.m. OK Python 3 TESTS 96 62 0 1300
32088336 hexsix B Nov. 6, 2017, 6:31 a.m. OK Python 3 TESTS 96 62 0 1300
32019780 refle B Nov. 3, 2017, 4:31 p.m. OK Ruby TESTS 96 62 0 1300
32028729 majali B Nov. 3, 2017, 5:35 p.m. OK Ruby TESTS 96 62 102400 1300
32020120 fine_ B Nov. 3, 2017, 4:33 p.m. OK Ruby TESTS 96 77 102400 1300
32039305 majali B Nov. 4, 2017, 12:10 a.m. OK Ruby TESTS 96 109 102400 1300
32565376 eugene.y.che B Nov. 23, 2017, 3:23 a.m. OK Rust TESTS 96 15 0 1300
32146666 odomontois B Nov. 8, 2017, 8:46 p.m. OK Rust TESTS 96 15 0 1300
32083562 Hillmouse B Nov. 5, 2017, 8:43 p.m. OK Rust TESTS 96 15 0 1300
32146810 odomontois B Nov. 8, 2017, 8:56 p.m. OK Rust TESTS 96 30 0 1300
32042190 hatoo B Nov. 4, 2017, 4:32 a.m. OK Rust TESTS 96 30 102400 1300
32141276 AKarpinsky B Nov. 8, 2017, 1:50 p.m. OK Scala TESTS 96 545 0 1300
32141600 AKarpinsky B Nov. 8, 2017, 2:13 p.m. OK Scala TESTS 96 560 0 1300

remove filters

Back to search problems