Codeforces Round 407 (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
789 Codeforces Round 407 (Div. 2) FINISHED False 7200 246722123 March 29, 2017, 4:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 9372 ) A Anastasia and pebbles PROGRAMMING implementation math 1100

B"Anastasia loves going for a walk in Central Uzhlyandian Park. But she became uninterested in simple walking, so she began to collect Uzhlyandian pebbles. At first, she decided to collect all the pebbles she could find in the park. She has only two pockets. She can put at most k pebbles in each pocket at the same time. There are n different pebble types in the park, and there are wi pebbles of the i-th type. Anastasia is very responsible, so she never mixes pebbles of different types in same pocket. However, she can put different kinds of pebbles in different pockets at the same time. Unfortunately, she can't spend all her time collecting pebbles, so she can collect pebbles from the park only once a day. Help her to find the minimum number of days needed to collect all the pebbles of Uzhlyandian Central Park, taking into consideration that Anastasia can't place pebbles of different types in same pocket. The first line contains two integers n and k (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105, 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) -- the number of different pebble types and number of pebbles Anastasia can place in one pocket. The second line contains n integers w1, xe2 x80 x89w2, xe2 x80 x89..., xe2 x80 x89wn (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89wi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89104) -- number of pebbles of each type. The only line of output contains one integer -- the minimum number of days Anastasia needs to collect all the pebbles. In the first sample case, Anastasia can collect all pebbles of the first type on the first day, of second type -- on the second day, and of third type -- on the third day. Optimal sequence of actions in the second sample case: "...

Tutorials

Codeforces Round #407(Div.1 + Div.2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
26125026 FalseMirror A April 4, 2017, 3:03 p.m. OK D TESTS 31 46 7168000 1100
26122678 FalseMirror A April 4, 2017, 1:08 p.m. OK D TESTS 31 46 7168000 1100
26045646 FalseMirror A April 1, 2017, 7:13 a.m. OK D TESTS 31 46 7168000 1100
26345932 VitalijD A April 13, 2017, 6:53 p.m. OK Delphi TESTS 31 31 2560000 1100
26299962 dome A April 11, 2017, 1:34 p.m. OK FPC TESTS 31 15 2048000 1100
26123268 TNH23 A April 4, 2017, 1:35 p.m. OK FPC TESTS 31 30 1638400 1100
27672455 programming0808 A June 8, 2017, 1:37 p.m. OK FPC TESTS 31 31 0 1100
27671251 k_nd A June 8, 2017, 12:33 p.m. OK FPC TESTS 31 31 0 1100
27467649 k_nd A May 31, 2017, 1:21 p.m. OK FPC TESTS 31 31 0 1100
39217546 DPO_WS A June 13, 2018, 1:21 p.m. OK FPC TESTS 31 31 409600 1100
26983060 The_Winners A May 9, 2017, 7:17 p.m. OK FPC TESTS 31 31 409600 1100
36259168 Nightmar A March 13, 2018, 7:06 p.m. OK FPC TESTS 31 31 1638400 1100
29239291 test08 A Aug. 6, 2017, 10:59 a.m. OK FPC TESTS 31 31 1638400 1100
26429527 ahav A April 16, 2017, 4:45 p.m. OK FPC TESTS 31 31 1638400 1100
27682778 Sakib_islam A June 9, 2017, 5:30 a.m. OK GNU C TESTS 31 15 0 1100
31858453 vjudge4 A Oct. 29, 2017, 7:06 a.m. OK GNU C TESTS 31 30 409600 1100
26767501 Dragon_fxl A April 30, 2017, 12:29 p.m. OK GNU C TESTS 31 30 1843200 1100
25945688 shafinalam A March 30, 2017, 8:39 a.m. OK GNU C TESTS 31 30 1843200 1100
26218049 vjudge1 A April 8, 2017, 11:52 a.m. OK GNU C TESTS 31 30 1945600 1100
26253415 vjudge2 A April 10, 2017, 12:51 p.m. OK GNU C TESTS 31 30 2252800 1100
26083244 begner_expert A April 2, 2017, 5:44 p.m. OK GNU C TESTS 31 30 2252800 1100
27818545 NoSoul A June 16, 2017, 6:39 a.m. OK GNU C TESTS 31 31 0 1100
27473465 pmad1234 A May 31, 2017, 7:40 p.m. OK GNU C TESTS 31 31 0 1100
27460638 Rizro A May 31, 2017, 6:51 a.m. OK GNU C TESTS 31 31 0 1100
27337455 AkaneSasu A May 25, 2017, 1:17 p.m. OK GNU C++ TESTS 31 15 0 1100
27319266 King_of_Paladins A May 24, 2017, 11:54 a.m. OK GNU C++ TESTS 31 15 0 1100
32540313 vjudge3 A Nov. 22, 2017, 5:04 a.m. OK GNU C++ TESTS 31 15 409600 1100
25945643 15310320305 A March 30, 2017, 8:37 a.m. OK GNU C++ TESTS 31 15 1843200 1100
25939725 Scut82 A March 30, 2017, 3:40 a.m. OK GNU C++ TESTS 31 15 2048000 1100
25932721 Meherwal_nikhil110 A March 29, 2017, 7:57 p.m. OK GNU C++ TESTS 31 15 2048000 1100
25930228 smtcoder A March 29, 2017, 7:11 p.m. OK GNU C++ TESTS 31 15 2048000 1100
26221780 Wells A April 8, 2017, 3 p.m. OK GNU C++ TESTS 31 15 2252800 1100
26136441 alexislacour A April 5, 2017, 6:09 a.m. OK GNU C++ TESTS 31 15 2252800 1100
33468027 fyy2603 A Dec. 21, 2017, 12:19 a.m. OK GNU C++ TESTS 31 15 2457600 1100
25937012 Unique_23 A March 30, 2017, 12:21 a.m. OK GNU C11 TESTS 31 30 1843200 1100
56052201 kaiboy A June 25, 2019, 7:53 p.m. OK GNU C11 TESTS 31 31 0 1100
27917251 Sujoy_Mondal A June 20, 2017, 4:47 a.m. OK GNU C11 TESTS 31 31 0 1100
31865262 vjudge4 A Oct. 29, 2017, 11:43 a.m. OK GNU C11 TESTS 31 31 0 1100
41102958 vjudge3 A Aug. 2, 2018, 2:11 a.m. OK GNU C11 TESTS 31 31 0 1100
42432220 rishi7078 A Sept. 3, 2018, 3:23 p.m. OK GNU C11 TESTS 31 31 0 1100
44886795 vjudge1 A Oct. 25, 2018, 11:01 p.m. OK GNU C11 TESTS 31 31 0 1100
54005678 patilc125 A May 11, 2019, 7:44 p.m. OK GNU C11 TESTS 31 31 0 1100
55190520 YouKnowWho_IAm A June 6, 2019, 6:15 a.m. OK GNU C11 TESTS 31 31 0 1100
61017332 monisankerru A Sept. 21, 2019, 1:42 p.m. OK GNU C11 TESTS 31 31 409600 1100
27286926 Danylo04 A May 22, 2017, 3:25 p.m. OK GNU C++11 TESTS 31 15 0 1100
27312308 supy A May 24, 2017, 1:13 a.m. OK GNU C++11 TESTS 31 15 409600 1100
26068256 Rafaaaaaaaaaaaam A April 2, 2017, 3:10 a.m. OK GNU C++11 TESTS 31 15 1843200 1100
25921613 anantheparty A March 29, 2017, 5:34 p.m. OK GNU C++11 TESTS 31 15 2048000 1100
25943056 Tommyr7 A March 30, 2017, 6:43 a.m. OK GNU C++11 TESTS 31 15 2048000 1100
25938560 rushilpaul A March 30, 2017, 2:15 a.m. OK GNU C++11 TESTS 31 15 2457600 1100
26794742 thhyj A May 2, 2017, 2:09 a.m. OK GNU C++11 TESTS 31 15 2457600 1100
26403280 vjudge3 A April 16, 2017, 4:22 a.m. OK GNU C++11 TESTS 31 15 2457600 1100
25948159 tFGaQdmbhJHV A March 30, 2017, 10:16 a.m. OK GNU C++11 TESTS 31 15 2457600 1100
45669204 MosharrafOshy A Nov. 13, 2018, 9:30 a.m. OK GNU C++11 TESTS 31 30 0 1100
27531484 Linkus A June 2, 2017, 8:41 p.m. OK GNU C++14 TESTS 31 15 409600 1100
31547202 Big_black_jujube A Oct. 21, 2017, 1:15 a.m. OK GNU C++14 TESTS 31 15 2048000 1100
31737586 brambles_sea A Oct. 26, 2017, 12:12 p.m. OK GNU C++14 TESTS 31 30 0 1100
25951396 rakhejaforu.ar A March 30, 2017, 12:07 p.m. OK GNU C++14 TESTS 31 30 1843200 1100
26316342 seventh A April 12, 2017, 11:53 a.m. OK GNU C++14 TESTS 31 30 1945600 1100
25923508 MirrorCraze A March 29, 2017, 5:42 p.m. OK GNU C++14 TESTS 31 30 2252800 1100
26049896 helloww A April 1, 2017, 10:29 a.m. OK GNU C++14 TESTS 31 30 2252800 1100
32538195 tieuphong A Nov. 22, 2017, 1:02 a.m. OK GNU C++14 TESTS 31 31 0 1100
32319319 TheMaverick A Nov. 14, 2017, 7:53 p.m. OK GNU C++14 TESTS 31 31 0 1100
32147026 Shellhead96 A Nov. 8, 2017, 9:13 p.m. OK GNU C++14 TESTS 31 31 0 1100
54005663 RobertLu A May 11, 2019, 7:43 p.m. OK GNU C++17 TESTS 31 31 0 1100
52767916 vjudge2 A April 15, 2019, 6:01 a.m. OK GNU C++17 TESTS 31 31 0 1100
52681810 vjudge1 A April 13, 2019, 12:49 p.m. OK GNU C++17 TESTS 31 31 0 1100
46780157 vjudge2 A Dec. 9, 2018, 1:24 a.m. OK GNU C++17 TESTS 31 31 0 1100
46509063 vjudge3 A Dec. 2, 2018, 12:26 p.m. OK GNU C++17 TESTS 31 31 0 1100
54721532 awaracoder A May 27, 2019, 5:39 p.m. OK GNU C++17 TESTS 31 31 0 1100
54741047 mp9107 A May 28, 2019, 7:58 a.m. OK GNU C++17 TESTS 31 31 409600 1100
52899992 engiplayer A April 17, 2019, 10:44 a.m. OK GNU C++17 TESTS 31 31 819200 1100
66777306 DevJewel A Dec. 13, 2019, 10:36 a.m. OK GNU C++17 TESTS 31 46 0 1100
69507731 Brainless_Loco A Jan. 25, 2020, 9:20 a.m. OK GNU C++17 TESTS 31 46 0 1100
26875987 yuliang A May 5, 2017, 8:16 a.m. OK Go TESTS 31 31 0 1100
26536428 mishagam A April 21, 2017, 11:51 a.m. OK Go TESTS 31 31 27136000 1100
26125756 odomontois A April 4, 2017, 3:46 p.m. OK Haskell TESTS 31 31 54374400 1100
53820251 vjudge2 A May 6, 2019, 12:46 p.m. OK Haskell TESTS 31 202 13721600 1100
25937598 CyberZHG A March 30, 2017, 1:03 a.m. OK Haskell TESTS 31 358 53452800 1100
26039730 ak464tnok A April 1, 2017, 1:23 a.m. OK Haskell TESTS 31 421 67072000 1100
30698549 nadavishe A Sept. 25, 2017, 8:26 a.m. OK Haskell TESTS 31 436 33792000 1100
30698679 nadavishe A Sept. 25, 2017, 8:34 a.m. OK Haskell TESTS 31 452 34816000 1100
26077348 gdka A April 2, 2017, 12:04 p.m. OK Haskell TESTS 31 467 67072000 1100
30663367 nadavishe A Sept. 24, 2017, 10:55 a.m. OK Haskell TESTS 31 468 19148800 1100
26038694 ak464tnok A March 31, 2017, 11:58 p.m. OK Haskell TESTS 31 483 69222400 1100
26038723 ak464tnok A April 1, 2017, midnight OK Haskell TESTS 31 530 71270400 1100
62628630 Anonymous A Oct. 15, 2019, 2:46 p.m. OK Java 8 TESTS 31 109 0 1100
27259381 filmwalams A May 21, 2017, 5:37 a.m. OK Java 8 TESTS 31 109 0 1100
27202140 parth_1 A May 18, 2017, 5:49 p.m. OK Java 8 TESTS 31 109 0 1100
31380682 VerticesEdge A Oct. 16, 2017, 3:12 a.m. OK Java 8 TESTS 31 109 20172800 1100
26098192 chojh1222 A April 3, 2017, 11:37 a.m. OK Java 8 TESTS 31 109 20172800 1100
25953237 prashanth_rebala A March 30, 2017, 1:08 p.m. OK Java 8 TESTS 31 109 20172800 1100
26032389 Thakur13 A March 31, 2017, 6:08 p.m. OK Java 8 TESTS 31 109 20582400 1100
25929825 Dukkha A March 29, 2017, 7:06 p.m. OK Java 8 TESTS 31 109 20582400 1100
25961171 punosp A March 30, 2017, 6:26 p.m. OK Java 8 TESTS 31 109 20582400 1100
25933718 da_201501181 A March 29, 2017, 8:32 p.m. OK Java 8 TESTS 31 109 20787200 1100
26223097 Zealotrahl A April 8, 2017, 4:26 p.m. OK JavaScript TESTS 31 46 17100800 1100
26187424 danchick_technostyle A April 7, 2017, 8:35 a.m. OK JavaScript TESTS 31 93 21196800 1100
47276520 konvpalto A Dec. 19, 2018, 7:43 p.m. OK Kotlin TESTS 31 218 3788800 1100
26311168 ScanNorOne A April 12, 2017, 5:15 a.m. OK Kotlin TESTS 31 249 27238400 1100
25963092 niquefa_diego A March 30, 2017, 8:04 p.m. OK Kotlin TESTS 31 327 26624000 1100
26413705 Xtreemist A April 16, 2017, 1:17 p.m. OK Mono C# TESTS 31 62 15564800 1100
26483141 lusine.petrosyan1 A April 18, 2017, 7:35 p.m. OK Mono C# TESTS 31 77 15462400 1100
26114538 mban259 A April 4, 2017, 6:31 a.m. OK Mono C# TESTS 31 77 19251200 1100
44072272 nemars A Oct. 10, 2018, 11:59 a.m. OK Mono C# TESTS 31 93 11366400 1100
25956792 og.kostya A March 30, 2017, 3:13 p.m. OK MS C# TESTS 31 46 9011200 1100
25978954 AnatolyTolstobrov A March 31, 2017, 12:50 p.m. OK MS C# TESTS 31 46 9216000 1100
26375184 MrLeo A April 15, 2017, 9:02 a.m. OK MS C# TESTS 31 61 15155200 1100
26579488 halka A April 22, 2017, 9:13 a.m. OK MS C# TESTS 31 61 16179200 1100
27225712 GusztavSzmolik A May 20, 2017, 12:19 a.m. OK MS C# TESTS 31 62 6656000 1100
30962053 Skndr A Oct. 3, 2017, 8:26 a.m. OK MS C# TESTS 31 62 7065600 1100
28166070 Vtz A June 30, 2017, 7:16 a.m. OK MS C# TESTS 31 62 9318400 1100
33075064 m1_k3 A Dec. 10, 2017, 7:52 a.m. OK MS C# TESTS 31 62 12083200 1100
26230687 YakovPolykovsky A April 9, 2017, 5:49 a.m. OK MS C# TESTS 31 62 15155200 1100
26173017 Noam527 A April 6, 2017, 2:51 p.m. OK MS C# TESTS 31 62 15155200 1100
26251353 vjudge5 A April 10, 2017, 11:20 a.m. OK MS C++ TESTS 31 15 2457600 1100
31865936 vjudge5 A Oct. 29, 2017, 12:10 p.m. OK MS C++ TESTS 31 30 512000 1100
31859416 vjudge3 A Oct. 29, 2017, 7:48 a.m. OK MS C++ TESTS 31 30 512000 1100
26684268 vjudge5 A April 26, 2017, 2:50 p.m. OK MS C++ TESTS 31 30 1945600 1100
25949851 jslijin A March 30, 2017, 11:17 a.m. OK MS C++ TESTS 31 30 2048000 1100
26293985 vjudge4 A April 11, 2017, 8:55 a.m. OK MS C++ TESTS 31 30 2048000 1100
26069351 vjudge3 A April 2, 2017, 4:53 a.m. OK MS C++ TESTS 31 30 2048000 1100
26212177 vjudge3 A April 8, 2017, 7:34 a.m. OK MS C++ TESTS 31 30 2457600 1100
53834285 vjudge5 A May 7, 2019, 12:35 a.m. OK MS C++ TESTS 31 31 0 1100
52549185 vjudge2 A April 10, 2019, 2:03 a.m. OK MS C++ TESTS 31 31 0 1100
65139244 vjudge1 A Nov. 16, 2019, 5:55 a.m. OK MS C++ 2017 TESTS 31 46 0 1100
52665936 945578930 A April 13, 2019, 4:40 a.m. OK MS C++ 2017 TESTS 31 46 409600 1100
69527367 vjudge1 A Jan. 25, 2020, 3:38 p.m. OK MS C++ 2017 TESTS 31 62 819200 1100
65139775 vjudge2 A Nov. 16, 2019, 6:10 a.m. OK MS C++ 2017 TESTS 31 78 716800 1100
51405327 Divi1903 A March 17, 2019, 9:31 a.m. OK MS C++ 2017 TESTS 31 93 0 1100
65564540 vjudge5 A Nov. 23, 2019, 5:12 a.m. OK MS C++ 2017 TESTS 31 93 307200 1100
52061124 Still_Theory A March 31, 2019, 1:07 a.m. OK MS C++ 2017 TESTS 31 93 1638400 1100
69898484 vjudge2 A Jan. 31, 2020, 12:24 p.m. OK MS C++ 2017 TESTS 31 93 4300800 1100
55996048 Gimber A June 24, 2019, 10:29 a.m. OK PascalABC.NET TESTS 31 249 0 1100
25933550 rsFalse A March 29, 2017, 8:26 p.m. OK Perl TESTS 31 109 22937600 1100
26359969 dreamoon_love_AA A April 14, 2017, 2:58 p.m. OK PHP TESTS 31 61 13926400 1100
25941757 mayakin A March 30, 2017, 5:41 a.m. OK PHP TESTS 31 62 13926400 1100
25929772 Trunks A March 29, 2017, 7:05 p.m. OK PyPy 2 TESTS 31 78 28876800 1100
26299365 Yash_ A April 11, 2017, 1:10 p.m. OK PyPy 2 TESTS 31 93 26931200 1100
26106052 kinematicks A April 3, 2017, 6:02 p.m. OK PyPy 2 TESTS 31 93 27340800 1100
28413203 APwhitehat A July 10, 2017, 6:03 p.m. OK PyPy 2 TESTS 31 140 28979200 1100
41415840 aeternalis1 A Aug. 10, 2018, 2:38 a.m. OK PyPy 2 TESTS 31 186 6553600 1100
36238421 Lewin A March 13, 2018, 3:55 a.m. OK PyPy 2 TESTS 31 218 27955200 1100
54654298 Aidos A May 26, 2019, 7:23 a.m. OK PyPy 3 TESTS 31 171 10547200 1100
51799962 Sevlll A March 24, 2019, 5:26 p.m. OK PyPy 3 TESTS 31 171 10547200 1100
26063615 and800 A April 1, 2017, 7:41 p.m. OK PyPy 3 TESTS 31 171 30105600 1100
29439641 Qumeric A Aug. 13, 2017, 4:58 p.m. OK PyPy 3 TESTS 31 171 30208000 1100
26338192 dukeu A April 13, 2017, 1:28 p.m. OK PyPy 3 TESTS 31 186 33689600 1100
28800820 sobir_bobiev A July 23, 2017, 12:21 p.m. OK PyPy 3 TESTS 31 187 30412800 1100
59588985 propashii A Aug. 27, 2019, 7:22 p.m. OK PyPy 3 TESTS 31 217 10240000 1100
50092540 Fantasyice A Feb. 18, 2019, 11:12 a.m. OK PyPy 3 TESTS 31 217 10547200 1100
59442886 Oliver_sykes A Aug. 25, 2019, noon OK PyPy 3 TESTS 31 218 8294400 1100
64173422 essi A Nov. 3, 2019, 7:32 p.m. OK PyPy 3 TESTS 31 233 10342400 1100
31127004 Hildegrin A Oct. 7, 2017, 7:45 p.m. OK Python 2 TESTS 31 109 5632000 1100
26990336 BlueHazard_rony A May 10, 2017, 5:48 a.m. OK Python 2 TESTS 31 109 5632000 1100
28413209 APwhitehat A July 10, 2017, 6:03 p.m. OK Python 2 TESTS 31 109 10240000 1100
26138082 anton192 A April 5, 2017, 8 a.m. OK Python 2 TESTS 31 109 10342400 1100
32806941 laoliumang A Nov. 30, 2017, 1:41 p.m. OK Python 2 TESTS 31 124 10137600 1100
28266646 Temirulan A July 4, 2017, 12:26 a.m. OK Python 2 TESTS 31 124 10240000 1100
26416012 IvanJobs A April 16, 2017, 3:10 p.m. OK Python 2 TESTS 31 124 10240000 1100
26244024 swapnilsmn A April 9, 2017, 8:56 p.m. OK Python 2 TESTS 31 124 10240000 1100
26111888 biltharesatyendra A April 4, 2017, 3:06 a.m. OK Python 2 TESTS 31 124 10240000 1100
26075312 TokuchiToa A April 2, 2017, 10:22 a.m. OK Python 2 TESTS 31 124 10240000 1100
27439603 ycaxgjd A May 30, 2017, 4:13 a.m. OK Python 3 TESTS 31 93 7270400 1100
26040384 0w1 A April 1, 2017, 2:15 a.m. OK Python 3 TESTS 31 93 11571200 1100
28139335 Vosatorp A June 29, 2017, 12:21 p.m. OK Python 3 TESTS 31 93 13004800 1100
26127667 merolish A April 4, 2017, 4:14 p.m. OK Python 3 TESTS 31 108 10444800 1100
25940373 eddy1021 A March 30, 2017, 4:21 a.m. OK Python 3 TESTS 31 108 11878400 1100
26331198 Iriskinn A April 13, 2017, 5:09 a.m. OK Python 3 TESTS 31 108 12902400 1100
34982638 MaxHo A Feb. 6, 2018, 8:52 p.m. OK Python 3 TESTS 31 108 13004800 1100
27475399 Christopher-Perkins A May 31, 2017, 11:26 p.m. OK Python 3 TESTS 31 109 7270400 1100
26886950 wujuihsuan2016 A May 5, 2017, 6:27 p.m. OK Python 3 TESTS 31 109 7270400 1100
27514778 arpit040199 A June 2, 2017, 4:15 a.m. OK Python 3 TESTS 31 109 7372800 1100
26630426 cielavenir A April 23, 2017, 11:31 p.m. OK Ruby TESTS 31 124 16691200 1100
25932832 JhonTorres A March 29, 2017, 8 p.m. OK Ruby TESTS 31 171 16691200 1100
26297224 yigezhe A April 11, 2017, 11:41 a.m. OK Ruby TESTS 31 186 16588800 1100
25921342 wrick A March 29, 2017, 5:32 p.m. OK Scala TESTS 31 296 23654400 1100
29222107 olegp04728 A Aug. 5, 2017, 3:32 p.m. OK Scala TESTS 31 311 26931200 1100

remove filters

Back to search problems