Codeforces Round 478 (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
975 Codeforces Round 478 (Div. 2) FINISHED False 7200 206639699 May 1, 2018, 2:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 6870 ) B Mancala PROGRAMMING brute force implementation 1200

B'Mancala is a game famous in the Middle East. It is played on a board that consists of 14 holes. Initially, each hole has a_i stones. When a player makes a move, he chooses a hole which contains a positive number of stones. He takes all the stones inside it and then redistributes these stones one by one in the next holes in a counter-clockwise direction. Note that the counter-clockwise order means if the player takes the stones from hole i , he will put one stone in the (i+1) -th hole, then in the (i+2) -th, etc. If he puts a stone in the 14 -th hole, the next one will be put in the first hole. After the move, the player collects all the stones from holes that contain even number of stones. The number of stones collected by player is the score, according to Resli. Resli is a famous Mancala player. He wants to know the maximum score he can obtain after one move. The only line contains 14 integers a_1, a_2, ldots, a_{14} ( 0 <= q a_i <= q 10^9 ) -- the number of stones in each hole. It is guaranteed that for any i ( 1 <= q i <= q 14 ) a_i is either zero or odd, and there is at least one stone in the board. Output one integer, the maximum possible score after one move. In the first test case the board after the move from the hole with 7 stones will look like 1 2 2 0 0 0 0 0 0 0 1 1 1 1. Then the player collects the even numbers and ends up with a score equal to 4 . '...

Tutorials

Codeforces Round #478 (Div. 2), Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
37805518 arukuka B May 1, 2018, 2:25 p.m. OK D TESTS 26 15 4403200 1200
37808254 ia7ck B May 1, 2018, 2:37 p.m. OK D TESTS 26 30 4403200 1200
38639930 rr_ B May 26, 2018, 4:40 p.m. OK D TESTS 26 31 0 1200
38340006 admire.japan B May 17, 2018, 6:37 a.m. OK D TESTS 26 31 307200 1200
37844964 Gassa B May 2, 2018, 4:08 p.m. OK D TESTS 26 31 4403200 1200
37806110 ruban B May 1, 2018, 2:28 p.m. OK Delphi TESTS 26 15 32870400 1200
38802986 minhnghiann03 B May 31, 2018, 1:09 p.m. OK FPC TESTS 26 15 3174400 1200
37808488 ayatsevich B May 1, 2018, 2:38 p.m. OK FPC TESTS 26 30 3072000 1200
37809690 ndhuy B May 1, 2018, 2:45 p.m. OK FPC TESTS 26 30 3174400 1200
43072557 chaorenhaha B Sept. 19, 2018, 10:03 a.m. OK FPC TESTS 26 31 0 1200
37875592 rabbitcxk B May 4, 2018, 5:47 a.m. OK FPC TESTS 26 31 3072000 1200
37875442 luogu_bot4 B May 4, 2018, 5:34 a.m. OK FPC TESTS 26 31 3072000 1200
37821538 exid-hani B May 1, 2018, 5:16 p.m. OK FPC TESTS 26 31 3072000 1200
37808184 AHTOH._. B May 1, 2018, 2:37 p.m. OK FPC TESTS 26 31 3072000 1200
37842712 triggered_Man B May 2, 2018, 2:21 p.m. OK GNU C TESTS 26 15 3379200 1200
37931054 the-vinh B May 6, 2018, 2:03 p.m. OK GNU C TESTS 26 15 3379200 1200
37920218 adiraghuwanshi23 B May 6, 2018, 6:06 a.m. OK GNU C TESTS 26 15 3379200 1200
37858647 triggered_Man B May 3, 2018, 10:10 a.m. OK GNU C TESTS 26 15 3379200 1200
37831590 220 B May 2, 2018, 5:37 a.m. OK GNU C TESTS 26 15 3379200 1200
37818031 minarmahmud B May 1, 2018, 3:48 p.m. OK GNU C TESTS 26 15 3379200 1200
37812113 tcantr B May 1, 2018, 2:59 p.m. OK GNU C TESTS 26 15 3379200 1200
37808739 _pepperoni B May 1, 2018, 2:40 p.m. OK GNU C TESTS 26 15 3379200 1200
37805758 freyes B May 1, 2018, 2:26 p.m. OK GNU C TESTS 26 15 3379200 1200
37906158 MajAK B May 5, 2018, 12:39 p.m. OK GNU C TESTS 26 15 3584000 1200
39258404 Lazypants B June 15, 2018, 5:59 a.m. OK GNU C++ TESTS 26 15 0 1200
39254207 adarsh7777 B June 14, 2018, 10:41 p.m. OK GNU C++ TESTS 26 15 0 1200
39135685 luogu_bot4 B June 11, 2018, 3:45 a.m. OK GNU C++ TESTS 26 15 0 1200
39015853 usrivastav615 B June 7, 2018, 10:23 a.m. OK GNU C++ TESTS 26 15 0 1200
39014144 luogu_bot2 B June 7, 2018, 9:16 a.m. OK GNU C++ TESTS 26 15 0 1200
39013901 vjudge1 B June 7, 2018, 9:06 a.m. OK GNU C++ TESTS 26 15 0 1200
38606756 hemant B May 25, 2018, 11:03 a.m. OK GNU C++ TESTS 26 15 0 1200
38414999 charlotte26 B May 19, 2018, 2:51 a.m. OK GNU C++ TESTS 26 15 0 1200
39013920 Cr_Momi91 B June 7, 2018, 9:07 a.m. OK GNU C++ TESTS 26 15 102400 1200
38073050 vjudge4 B May 9, 2018, 1:37 p.m. OK GNU C++ TESTS 26 15 3379200 1200
49035180 vjudge2 B Jan. 27, 2019, 2:39 a.m. OK GNU C11 TESTS 26 15 0 1200
48799540 vjudge4 B Jan. 23, 2019, 1:52 p.m. OK GNU C11 TESTS 26 15 0 1200
48459402 NoSoul B Jan. 16, 2019, 1:57 p.m. OK GNU C11 TESTS 26 15 0 1200
37922457 falcon_9 B May 6, 2018, 7:47 a.m. OK GNU C11 TESTS 26 15 3379200 1200
37819650 Gnest_Imp B May 1, 2018, 4:03 p.m. OK GNU C11 TESTS 26 15 3379200 1200
48792835 vjudge4 B Jan. 23, 2019, 11:32 a.m. OK GNU C11 TESTS 26 30 0 1200
37815729 chinodesu B May 1, 2018, 3:27 p.m. OK GNU C11 TESTS 26 30 3379200 1200
37811553 york135 B May 1, 2018, 2:56 p.m. OK GNU C11 TESTS 26 30 3379200 1200
66151887 Razvan2000f B Dec. 1, 2019, 7:26 p.m. OK GNU C11 TESTS 26 31 0 1200
56992465 kaiboy B July 13, 2019, 7:12 p.m. OK GNU C11 TESTS 26 31 0 1200
39222763 tezst B June 13, 2018, 5:15 p.m. OK GNU C++11 TESTS 26 15 0 1200
66922658 vjudge1 B Dec. 15, 2019, 6:31 a.m. OK GNU C++11 TESTS 26 15 0 1200
54435365 landcold7 B May 21, 2019, 4:57 a.m. OK GNU C++11 TESTS 26 15 0 1200
40698464 A_Wanderer B July 24, 2018, 9:13 a.m. OK GNU C++11 TESTS 26 15 0 1200
39637545 elvin.yang9 B June 25, 2018, 4:07 a.m. OK GNU C++11 TESTS 26 15 0 1200
39342853 pawelzell B June 17, 2018, 7:59 p.m. OK GNU C++11 TESTS 26 15 0 1200
39264390 krikti B June 15, 2018, 11:15 a.m. OK GNU C++11 TESTS 26 15 0 1200
39229854 biltharesatyendra B June 14, 2018, 2:28 a.m. OK GNU C++11 TESTS 26 15 0 1200
39047753 raresdanut B June 8, 2018, 1:45 p.m. OK GNU C++11 TESTS 26 15 0 1200
39031347 walaa.khafagy B June 7, 2018, 8:43 p.m. OK GNU C++11 TESTS 26 15 0 1200
66934401 vjudge3 B Dec. 15, 2019, 8:05 a.m. OK GNU C++14 TESTS 26 15 0 1200
48096442 Jasmit63 B Jan. 8, 2019, 5:09 p.m. OK GNU C++14 TESTS 26 15 0 1200
49399685 shivam077 B Feb. 3, 2019, 2:09 p.m. OK GNU C++14 TESTS 26 15 0 1200
49745145 Yahya_Zahran B Feb. 10, 2019, 9:02 p.m. OK GNU C++14 TESTS 26 15 0 1200
51395576 da929 B March 17, 2019, 4:14 a.m. OK GNU C++14 TESTS 26 15 0 1200
53645527 chauhain B May 1, 2019, 6:45 p.m. OK GNU C++14 TESTS 26 15 0 1200
57989432 mtnshh B July 30, 2019, 12:40 p.m. OK GNU C++14 TESTS 26 15 0 1200
61899060 mananpoddar B Oct. 5, 2019, 8:06 a.m. OK GNU C++14 TESTS 26 15 0 1200
62509543 ShashankGoel.IITD saumyag.gupta B Oct. 13, 2019, 1:04 p.m. OK GNU C++14 TESTS 26 15 0 1200
62733070 hipo B Oct. 16, 2019, 5:16 p.m. OK GNU C++14 TESTS 26 15 0 1200
65279598 Anmol B Nov. 18, 2019, 4:39 a.m. OK GNU C++17 TESTS 26 15 0 1200
64476145 DinhHoangHDang_17100261 B Nov. 7, 2019, 2:26 p.m. OK GNU C++17 TESTS 26 15 0 1200
62571539 marian013 B Oct. 14, 2019, 2:39 p.m. OK GNU C++17 TESTS 26 15 0 1200
59693025 nksx B Aug. 30, 2019, 7:09 a.m. OK GNU C++17 TESTS 26 15 0 1200
58078402 Sadra B July 31, 2019, 1:07 p.m. OK GNU C++17 TESTS 26 15 0 1200
57986079 tarun360 B July 30, 2019, 11:26 a.m. OK GNU C++17 TESTS 26 15 0 1200
56736571 k24 B July 9, 2019, 5:37 a.m. OK GNU C++17 TESTS 26 15 0 1200
55662841 m.hasan01 B June 16, 2019, 11:32 p.m. OK GNU C++17 TESTS 26 15 0 1200
55208823 GalliusRex27 B June 6, 2019, 1:44 p.m. OK GNU C++17 TESTS 26 15 0 1200
55203183 naman44 B June 6, 2019, 11:29 a.m. OK GNU C++17 TESTS 26 15 0 1200
37990791 gameface_123 B May 7, 2018, 10:08 a.m. OK GNU C++17 Diagnostics TESTS 26 966 99430400 1200
37814311 lolopat2 B May 1, 2018, 3:15 p.m. OK Go TESTS 26 15 24371200 1200
37870530 aitorortiz B May 3, 2018, 7:24 p.m. OK Go TESTS 26 30 24371200 1200
37870797 aitorortiz B May 3, 2018, 7:46 p.m. OK Go TESTS 26 31 24371200 1200
37910301 codemania B May 5, 2018, 3:36 p.m. OK Haskell TESTS 26 15 44851200 1200
37813421 Ximera B May 1, 2018, 3:08 p.m. OK Haskell TESTS 26 30 44851200 1200
37810197 nieru B May 1, 2018, 2:48 p.m. OK Haskell TESTS 26 31 53248000 1200
48320026 wadissimo B Jan. 13, 2019, 8:43 a.m. OK Java 8 TESTS 26 108 0 1200
53582774 Hemose B April 30, 2019, 4:34 p.m. OK Java 8 TESTS 26 109 0 1200
68856228 insane_28 B Jan. 15, 2020, 10:42 a.m. OK Java 8 TESTS 26 109 0 1200
66892341 fundamentals B Dec. 14, 2019, 9:26 p.m. OK Java 8 TESTS 26 109 0 1200
55541412 ragpatel8742 B June 13, 2019, 8:03 p.m. OK Java 8 TESTS 26 109 0 1200
46727818 Mahakarma B Dec. 7, 2018, 3:53 p.m. OK Java 8 TESTS 26 109 0 1200
45984511 hoperr B Nov. 20, 2018, 5:20 a.m. OK Java 8 TESTS 26 109 0 1200
38130273 tdx B May 12, 2018, 6:50 a.m. OK Java 8 TESTS 26 109 20684800 1200
53583965 Samez B April 30, 2019, 5:17 p.m. OK Java 8 TESTS 26 124 0 1200
67500738 iam_ljk B Dec. 24, 2019, 4:23 a.m. OK Java 8 TESTS 26 124 0 1200
37878304 exs B May 4, 2018, 8:43 a.m. OK Kotlin TESTS 26 187 22835200 1200
37992007 Dmitriy73 B May 7, 2018, 10:56 a.m. OK Mono C# TESTS 26 31 7987200 1200
48085435 tamunsio B Jan. 8, 2019, 11 a.m. OK Mono C# TESTS 26 46 0 1200
37815808 Kayaba_Akihiko B May 1, 2018, 3:28 p.m. OK Mono C# TESTS 26 46 7987200 1200
37817555 NotDomo B May 1, 2018, 3:43 p.m. OK Mono C# TESTS 26 46 7987200 1200
37808325 gonchenko B May 1, 2018, 2:38 p.m. OK Mono C# TESTS 26 46 7987200 1200
37804158 kuuso B May 1, 2018, 2:20 p.m. OK Mono C# TESTS 26 46 7987200 1200
37804436 koyaaniqatsi B May 1, 2018, 2:22 p.m. OK Mono C# TESTS 26 46 11468800 1200
37842382 Zaczero B May 2, 2018, 2:09 p.m. OK Mono C# TESTS 26 46 11571200 1200
38147060 dinnot B May 12, 2018, 7:31 p.m. OK Mono C# TESTS 26 46 11571200 1200
37819403 Nathan.Sproul B May 1, 2018, 4:01 p.m. OK Mono C# TESTS 26 46 11571200 1200
48702631 vjudge2 B Jan. 22, 2019, 3:48 a.m. OK MS C++ TESTS 26 15 0 1200
48653590 vjudge3 B Jan. 21, 2019, 12:45 a.m. OK MS C++ TESTS 26 15 0 1200
39638767 andrewting B June 25, 2018, 5:19 a.m. OK MS C++ TESTS 26 15 0 1200
38632530 id1 B May 26, 2018, 11:50 a.m. OK MS C++ TESTS 26 15 0 1200
68009912 vjudge4 B Dec. 31, 2019, 3:11 p.m. OK MS C++ TESTS 26 15 0 1200
37896280 ys1468362286 B May 5, 2018, 5:15 a.m. OK MS C++ TESTS 26 15 3481600 1200
37814148 lkitrossky B May 1, 2018, 3:14 p.m. OK MS C++ TESTS 26 15 3481600 1200
37814507 sirish_kp B May 1, 2018, 3:17 p.m. OK MS C++ TESTS 26 15 3481600 1200
37817461 DeBudd B May 1, 2018, 3:43 p.m. OK MS C++ TESTS 26 15 3481600 1200
37866334 Albread B May 3, 2018, 3:22 p.m. OK MS C++ TESTS 26 15 3481600 1200
50097361 holder94 B Feb. 18, 2019, 1:20 p.m. OK MS C++ 2017 TESTS 26 31 0 1200
63070303 vjudge2 B Oct. 21, 2019, 12:11 p.m. OK MS C++ 2017 TESTS 26 31 0 1200
68348481 immortal_luo B Jan. 7, 2020, 8:35 a.m. OK MS C++ 2017 TESTS 26 31 307200 1200
67020739 meanman B Dec. 16, 2019, 12:53 p.m. OK MS C++ 2017 TESTS 26 31 307200 1200
37988397 secondwtq B May 7, 2018, 8:08 a.m. OK Ocaml TESTS 26 15 3891200 1200
39213779 Kemal.A B June 13, 2018, 10:57 a.m. OK PascalABC.NET TESTS 26 31 0 1200
37821014 PAG B May 1, 2018, 5:02 p.m. OK PascalABC.NET TESTS 26 31 13209600 1200
37807653 l-_-l B May 1, 2018, 2:35 p.m. OK PascalABC.NET TESTS 26 31 13209600 1200
37845122 MI73 B May 2, 2018, 4:16 p.m. OK PascalABC.NET TESTS 26 46 13209600 1200
37819230 OnlyDeniko B May 1, 2018, 3:59 p.m. OK PascalABC.NET TESTS 26 61 17408000 1200
37846193 ZhukDima B May 2, 2018, 5:15 p.m. OK PascalABC.NET TESTS 26 62 17510400 1200
68241389 28Nik B Jan. 5, 2020, 12:56 p.m. OK PascalABC.NET TESTS 26 187 0 1200
39500495 mayakin B June 21, 2018, 8:47 p.m. OK PHP TESTS 26 31 0 1200
37812161 wolffd B May 1, 2018, 3 p.m. OK PyPy 2 TESTS 26 93 22835200 1200
38109018 Ehzyo B May 11, 2018, 8:35 a.m. OK PyPy 2 TESTS 26 93 22835200 1200
37921436 saiaditya.chundi B May 6, 2018, 7:02 a.m. OK PyPy 2 TESTS 26 93 22835200 1200
37817253 tanmay28 B May 1, 2018, 3:40 p.m. OK PyPy 2 TESTS 26 93 22835200 1200
37817201 subhajitpal57 B May 1, 2018, 3:40 p.m. OK PyPy 2 TESTS 26 93 22835200 1200
37803948 zacker-22 B May 1, 2018, 2:19 p.m. OK PyPy 2 TESTS 26 93 22835200 1200
37806294 WyattWismer B May 1, 2018, 2:29 p.m. OK PyPy 2 TESTS 26 109 22835200 1200
37805780 FatherofBenoni B May 1, 2018, 2:26 p.m. OK PyPy 2 TESTS 26 109 22835200 1200
37802057 kevinsogo B May 1, 2018, 2:11 p.m. OK PyPy 2 TESTS 26 109 22835200 1200
37801857 alexwice B May 1, 2018, 2:10 p.m. OK PyPy 2 TESTS 26 109 23961600 1200
37886165 redhatx B May 4, 2018, 3:03 p.m. OK PyPy 3 TESTS 26 93 21401600 1200
37812963 ssaurav123 B May 1, 2018, 3:05 p.m. OK PyPy 3 TESTS 26 93 21401600 1200
37809485 neverwin B May 1, 2018, 2:44 p.m. OK PyPy 3 TESTS 26 93 21401600 1200
37802722 sparkyyyy B May 1, 2018, 2:14 p.m. OK PyPy 3 TESTS 26 93 21401600 1200
37845104 jasmes B May 2, 2018, 4:15 p.m. OK PyPy 3 TESTS 26 108 21401600 1200
39646514 rkill B June 25, 2018, 10:33 a.m. OK PyPy 3 TESTS 26 109 0 1200
38638968 Yash_ B May 26, 2018, 3:53 p.m. OK PyPy 3 TESTS 26 109 0 1200
37826885 ebanner B May 1, 2018, 11:01 p.m. OK PyPy 3 TESTS 26 109 21401600 1200
37815786 Azimov B May 1, 2018, 3:27 p.m. OK PyPy 3 TESTS 26 109 21401600 1200
37810222 so_ra B May 1, 2018, 2:48 p.m. OK PyPy 3 TESTS 26 109 21401600 1200
39099853 shivangchopra11 B June 10, 2018, 10:43 a.m. OK Python 2 TESTS 26 93 0 1200
39001718 RadioHT B June 6, 2018, 6:21 p.m. OK Python 2 TESTS 26 93 0 1200
37903886 mathayus.1729 B May 5, 2018, 11:09 a.m. OK Python 2 TESTS 26 93 6041600 1200
37902512 mathayus.1729 B May 5, 2018, 10:08 a.m. OK Python 2 TESTS 26 93 6041600 1200
37809146 Liana41 B May 1, 2018, 2:42 p.m. OK Python 2 TESTS 26 93 6041600 1200
39070787 Minology B June 9, 2018, 1:48 p.m. OK Python 2 TESTS 26 108 0 1200
38152228 dut200901102 B May 13, 2018, 4:42 a.m. OK Python 2 TESTS 26 108 6041600 1200
37991230 nitixkrai B May 7, 2018, 10:25 a.m. OK Python 2 TESTS 26 108 6041600 1200
37976608 turja B May 6, 2018, 5:50 p.m. OK Python 2 TESTS 26 108 6041600 1200
37847976 silaskenn B May 2, 2018, 7:02 p.m. OK Python 2 TESTS 26 108 6041600 1200
39249107 Vasiliy_48 B June 14, 2018, 4:26 p.m. OK Python 3 TESTS 26 77 0 1200
37981317 moon7 B May 6, 2018, 10:43 p.m. OK Python 3 TESTS 26 77 7065600 1200
37859226 Evil__Coder B May 3, 2018, 10:41 a.m. OK Python 3 TESTS 26 77 7065600 1200
37839241 njw1204 B May 2, 2018, 12:11 p.m. OK Python 3 TESTS 26 77 7065600 1200
37823099 KuroEce B May 1, 2018, 6:16 p.m. OK Python 3 TESTS 26 77 7065600 1200
37810706 julian.fortin B May 1, 2018, 2:51 p.m. OK Python 3 TESTS 26 77 7065600 1200
37808936 Stardust_Crusader B May 1, 2018, 2:41 p.m. OK Python 3 TESTS 26 77 7065600 1200
37807163 heraclai B May 1, 2018, 2:32 p.m. OK Python 3 TESTS 26 77 7065600 1200
38539347 piyushkumarmaurya B May 22, 2018, 2:55 p.m. OK Python 3 TESTS 26 78 0 1200
38078261 Red4Ru B May 9, 2018, 5:37 p.m. OK Python 3 TESTS 26 78 7065600 1200
37804058 fine_ B May 1, 2018, 2:19 p.m. OK Ruby TESTS 26 77 6451200 1200
37815757 Alsophila B May 1, 2018, 3:27 p.m. OK Ruby TESTS 26 78 6451200 1200
37858936 kichi B May 3, 2018, 10:26 a.m. OK Rust TESTS 26 15 2867200 1200
37810816 Leonardone B May 1, 2018, 2:51 p.m. OK Rust TESTS 26 15 2867200 1200
37923408 Hillmouse B May 6, 2018, 8:28 a.m. OK Rust TESTS 26 30 2867200 1200
37808208 wrick B May 1, 2018, 2:37 p.m. OK Scala TESTS 26 608 40243200 1200

remove filters

Back to search problems