Codeforces Round 355 (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
677 Codeforces Round 355 (Div. 2) FINISHED False 7200 272813104 June 1, 2016, 4:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 7686 ) B Vanya and Food Processor PROGRAMMING implementation math 1400

B"Vanya smashes potato in a vertical food processor. At each moment of time the height of the potato in the processor doesn't exceed h and the processor smashes k centimeters of potato each second. If there are less than k centimeters remaining, than during this second processor smashes all the remaining potato. Vanya has n pieces of potato, the height of the i-th piece is equal to ai. He puts them in the food processor one by one starting from the piece number 1 and finishing with piece number n. Formally, each second the following happens: Provided the information about the parameter of the food processor and the size of each potato in a row, compute how long will it take for all the potato to become smashed. The first line of the input contains integers n, h and k (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89100 xe2 x80 x89000, xe2 x80 x891 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89h xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) -- the number of pieces of potato, the height of the food processor and the amount of potato being smashed each second, respectively. The second line contains n integers ai (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89h) -- the heights of the pieces. Print a single integer -- the number of seconds required to smash all the potatoes following the process described in the problem statement. Consider the first sample. In the second sample, Vanya puts the piece of height 5 inside and waits for 2 seconds while it is completely smashed. Then he repeats the same process for 4 other pieces. The total time is equal to 2 xc2 xb75 xe2 x80 x89= xe2 x80 x8910 seconds. In the third sample, Vanya simply puts all the potato inside the processor and waits 2 seconds. "...

Tutorials

Codeforces Round #355 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
56179073 vjudge1 B June 27, 2019, 9:19 p.m. OK Clang++17 Diagnostics TESTS 53 561 16076800 1400
18703860 EugenePilipenko B June 24, 2016, 3:49 p.m. OK Delphi TESTS 53 31 102400 1400
18988412 Shirone B July 9, 2016, 3:32 p.m. OK FPC TESTS 53 31 409600 1400
32810491 TShT B Nov. 30, 2017, 4:01 p.m. OK FPC TESTS 53 31 1638400 1400
18333992 Quan1999nt B June 9, 2016, 2:51 a.m. OK FPC TESTS 53 31 2150400 1400
18296044 Dzls.NGBA_Hoch B June 8, 2016, 9:48 a.m. OK FPC TESTS 53 31 2150400 1400
18295204 ngcaobach B June 8, 2016, 8:34 a.m. OK FPC TESTS 53 31 9830400 1400
19403511 Kuroni B July 25, 2016, 12:36 p.m. OK FPC TESTS 53 46 0 1400
19202524 i69.NHNguyen B July 18, 2016, 5:44 a.m. OK FPC TESTS 53 46 0 1400
19200429 nhnguyen_vietnam B July 18, 2016, 4:13 a.m. OK FPC TESTS 53 46 0 1400
54419747 amene B May 20, 2019, 2:44 p.m. OK FPC TESTS 53 46 307200 1400
46352363 chaorenhaha B Nov. 29, 2018, 6:14 a.m. OK FPC TESTS 53 46 819200 1400
22150829 flying_turtle B Nov. 10, 2016, 3:22 p.m. OK GNU C TESTS 53 31 0 1400
20226025 Rizro B Aug. 29, 2016, 9:02 a.m. OK GNU C TESTS 53 31 0 1400
19032655 A_Modern_Desperado B July 11, 2016, 2:55 p.m. OK GNU C TESTS 53 31 0 1400
18694899 abak01g B June 24, 2016, 6:17 a.m. OK GNU C TESTS 53 31 0 1400
27607441 deep529 B June 6, 2017, 7:20 a.m. OK GNU C TESTS 53 31 409600 1400
18708661 scotch B June 24, 2016, 7:30 p.m. OK GNU C TESTS 53 31 819200 1400
18527595 InsomniaX B June 16, 2016, 5:34 p.m. OK GNU C TESTS 53 31 819200 1400
19896755 rainboy B Aug. 15, 2016, 10:41 p.m. OK GNU C TESTS 53 31 1843200 1400
25372442 csssaz B March 10, 2017, 4:06 a.m. OK GNU C TESTS 53 31 1945600 1400
25116009 barrons.guillermo.sal B March 1, 2017, 6:22 a.m. OK GNU C TESTS 53 31 1945600 1400
19010391 yukihana0416 B July 10, 2016, 1:14 p.m. OK GNU C++ TESTS 53 15 0 1400
19509825 vjudge2 B July 30, 2016, 5:36 a.m. OK GNU C++ TESTS 53 15 409600 1400
18778711 Dalal B June 29, 2016, 7:14 a.m. OK GNU C++ TESTS 53 30 204800 1400
28017587 kmyiu B June 25, 2017, 7:23 a.m. OK GNU C++ TESTS 53 30 2457600 1400
27434792 upbeat B May 29, 2017, 7:07 p.m. OK GNU C++ TESTS 53 31 0 1400
22650958 _ShadowSong B Dec. 2, 2016, 3:05 a.m. OK GNU C++ TESTS 53 31 0 1400
21985060 moldi B Nov. 2, 2016, 8:06 a.m. OK GNU C++ TESTS 53 31 0 1400
20756621 alvinpiter B Sept. 19, 2016, 1:33 p.m. OK GNU C++ TESTS 53 31 0 1400
20342144 dGreen B Sept. 2, 2016, 1:57 p.m. OK GNU C++ TESTS 53 31 0 1400
20333999 Drako_2K B Sept. 2, 2016, 3:07 a.m. OK GNU C++ TESTS 53 31 0 1400
65604594 torque_459 B Nov. 23, 2019, 7:53 p.m. OK GNU C11 TESTS 53 31 0 1400
21993234 ltshandsome B Nov. 2, 2016, 2:03 p.m. OK GNU C11 TESTS 53 31 0 1400
35606832 keeptrying01 B Feb. 23, 2018, 6:25 p.m. OK GNU C11 TESTS 53 31 1843200 1400
35609117 Cyberologist B Feb. 23, 2018, 8:27 p.m. OK GNU C11 TESTS 53 31 1843200 1400
18399193 Ramprosad B June 12, 2016, 7:44 p.m. OK GNU C11 TESTS 53 31 2048000 1400
37703045 vjudge4 B April 29, 2018, 7:46 a.m. OK GNU C11 TESTS 53 31 3379200 1400
53970617 about B May 10, 2019, 8:43 p.m. OK GNU C11 TESTS 53 46 0 1400
62438003 kaiboy B Oct. 12, 2019, 6:12 p.m. OK GNU C11 TESTS 53 46 0 1400
58967205 probassassin B Aug. 17, 2019, 6:21 p.m. OK GNU C11 TESTS 53 46 0 1400
56173789 AbidAsh B June 27, 2019, 5:59 p.m. OK GNU C11 TESTS 53 46 0 1400
19475308 sicon54 B July 29, 2016, 8:05 a.m. OK GNU C++11 TESTS 53 15 0 1400
18634478 Nusratbek B June 21, 2016, 5:56 p.m. OK GNU C++11 TESTS 53 15 409600 1400
18346701 Sabiha_Fancy B June 9, 2016, 6:39 p.m. OK GNU C++11 TESTS 53 15 2252800 1400
19892992 blowice B Aug. 15, 2016, 5:28 p.m. OK GNU C++11 TESTS 53 15 2457600 1400
29856597 nowing B Aug. 29, 2017, 1:47 a.m. OK GNU C++11 TESTS 53 30 409600 1400
19853515 xuanyuan14 B Aug. 13, 2016, 3:38 p.m. OK GNU C++11 TESTS 53 30 2457600 1400
40984416 ReaLNero1 B July 30, 2018, 7:21 p.m. OK GNU C++11 TESTS 53 31 0 1400
67137923 luogu_bot3 B Dec. 18, 2019, 5:20 a.m. OK GNU C++11 TESTS 53 31 0 1400
56557718 AABBCCYY B July 5, 2019, 1:12 p.m. OK GNU C++11 TESTS 53 31 0 1400
31275905 MR_Freeman B Oct. 13, 2017, 1:35 p.m. OK GNU C++11 TESTS 53 31 0 1400
21995436 leo990096 B Nov. 2, 2016, 3:23 p.m. OK GNU C++14 TESTS 53 30 0 1400
27414402 skeksk91 B May 28, 2017, 2 p.m. OK GNU C++14 TESTS 53 31 409600 1400
32546712 Omnia.Saleh B Nov. 22, 2017, 10:21 a.m. OK GNU C++14 TESTS 53 31 409600 1400
32318848 rigzsingh B Nov. 14, 2017, 7:28 p.m. OK GNU C++14 TESTS 53 31 409600 1400
30600583 AliTarek B Sept. 21, 2017, 9:23 p.m. OK GNU C++14 TESTS 53 31 409600 1400
21893390 12iq B Oct. 30, 2016, 1:49 p.m. OK GNU C++14 TESTS 53 31 819200 1400
27050966 algon_320 B May 12, 2017, 9:36 a.m. OK GNU C++14 TESTS 53 31 819200 1400
24242069 mengxiang000 B Jan. 29, 2017, 7:57 a.m. OK GNU C++14 TESTS 53 31 1843200 1400
33846132 I_frankenstein B Jan. 1, 2018, 11:47 a.m. OK GNU C++14 TESTS 53 31 1945600 1400
26317252 deepwork B April 12, 2017, 12:38 p.m. OK GNU C++14 TESTS 53 31 1945600 1400
51622328 vjudge2 B March 21, 2019, 2:59 p.m. OK GNU C++17 TESTS 53 31 0 1400
41148905 Jaihk662 B Aug. 3, 2018, 7:52 a.m. OK GNU C++17 TESTS 53 31 716800 1400
51621184 vjudge1 B March 21, 2019, 2:24 p.m. OK GNU C++17 TESTS 53 46 0 1400
57305620 landcold7 B July 19, 2019, 3:30 a.m. OK GNU C++17 TESTS 53 46 0 1400
59267534 Baroudy B Aug. 22, 2019, 11:25 a.m. OK GNU C++17 TESTS 53 46 0 1400
60333808 adhm157 B Sept. 10, 2019, 7:29 a.m. OK GNU C++17 TESTS 53 46 0 1400
68413799 yshkpr B Jan. 8, 2020, 6:02 p.m. OK GNU C++17 TESTS 53 46 0 1400
69172594 aki167yuuki B Jan. 20, 2020, 6:46 a.m. OK GNU C++17 TESTS 53 46 0 1400
69488023 ptorbatii B Jan. 24, 2020, 8:34 p.m. OK GNU C++17 TESTS 53 46 0 1400
46192846 surbhianand231994 B Nov. 25, 2018, 6:31 a.m. OK GNU C++17 TESTS 53 46 0 1400
22121272 togatoga B Nov. 8, 2016, 10:20 p.m. OK Go TESTS 53 62 23449600 1400
67943759 ypa B Dec. 30, 2019, 3:43 a.m. OK Java 11 TESTS 53 202 0 1400
69890073 pranavmenon0810 B Jan. 31, 2020, 9:41 a.m. OK Java 11 TESTS 53 233 2867200 1400
18654613 orestisfoufris B June 23, 2016, 12:15 a.m. OK Java 7 TESTS 53 109 0 1400
18327693 keep.deep B June 8, 2016, 6:36 p.m. OK Java 7 TESTS 53 109 39116800 1400
18534918 mkirsche B June 17, 2016, 3:16 a.m. OK Java 7 TESTS 53 139 3174400 1400
18297783 buzaubakov.raman B June 8, 2016, 12:08 p.m. OK Java 7 TESTS 53 139 39936000 1400
18620647 farmersrice B June 20, 2016, 8:23 p.m. OK Java 7 TESTS 53 140 1024000 1400
19137818 228 B July 14, 2016, 11:32 p.m. OK Java 7 TESTS 53 140 3174400 1400
18655899 toilingcow B June 23, 2016, 3:13 a.m. OK Java 7 TESTS 53 311 0 1400
19375639 divyam01986 B July 24, 2016, 4:08 a.m. OK Java 7 TESTS 53 311 0 1400
18963153 Dhruv_Sachdev B July 8, 2016, 6:45 a.m. OK Java 7 TESTS 53 358 0 1400
18450414 shhf B June 14, 2016, 11:58 a.m. OK Java 7 TESTS 53 358 39526400 1400
25427728 Ajudiya_13 B March 12, 2017, 8:24 a.m. OK Java 8 TESTS 53 109 20582400 1400
30860190 Altaireon B Sept. 30, 2017, 9:03 a.m. OK Java 8 TESTS 53 124 0 1400
21415940 gone_girl B Oct. 14, 2016, 5:04 a.m. OK Java 8 TESTS 53 124 20480000 1400
28405269 parth_1 B July 10, 2017, 10:54 a.m. OK Java 8 TESTS 53 124 20582400 1400
28360502 Bibhuti B July 8, 2017, 4:15 a.m. OK Java 8 TESTS 53 124 20582400 1400
25865384 maitony B March 28, 2017, 5:10 a.m. OK Java 8 TESTS 53 124 21811200 1400
19167631 hama-du B July 16, 2016, 6:54 a.m. OK Java 8 TESTS 53 139 0 1400
57812943 Ikari_stream B July 26, 2019, 6:15 p.m. OK Java 8 TESTS 53 139 2048000 1400
50405389 TheSawan B Feb. 23, 2019, 8:25 p.m. OK Java 8 TESTS 53 139 2048000 1400
19051460 Sir-Shurikat B July 12, 2016, 12:55 p.m. OK Java 8 TESTS 53 139 2252800 1400
51371594 GiackAloZ B March 16, 2019, 12:12 p.m. OK Kotlin TESTS 53 264 6451200 1400
63036990 david_varela B Oct. 20, 2019, 9:21 p.m. OK Kotlin TESTS 53 265 6348800 1400
50887853 nemars B March 6, 2019, 12:03 p.m. OK Mono C# TESTS 53 92 17612800 1400
62069722 emanaboseada6 B Oct. 7, 2019, 4:21 p.m. OK Mono C# TESTS 53 93 17612800 1400
21374673 pomjuice B Oct. 12, 2016, 6:37 a.m. OK Mono C# TESTS 53 93 24780800 1400
62069793 emanaboseada6 B Oct. 7, 2019, 4:22 p.m. OK Mono C# TESTS 53 109 17612800 1400
21419295 og.kostya B Oct. 14, 2016, 9:22 a.m. OK MS C# TESTS 53 62 9625600 1400
19403745 Arcey B July 25, 2016, 12:50 p.m. OK MS C# TESTS 53 78 11980800 1400
18480931 kuzAnatoliy B June 14, 2016, 8:46 p.m. OK MS C# TESTS 53 92 19968000 1400
23031288 artsin666 B Dec. 16, 2016, 2:06 p.m. OK MS C# TESTS 53 93 11980800 1400
18391492 diequeeq B June 12, 2016, 1:23 p.m. OK MS C# TESTS 53 93 24166400 1400
20393867 Chubcheg B Sept. 5, 2016, 5:48 a.m. OK MS C# TESTS 53 109 15667200 1400
31788625 Skndr B Oct. 27, 2017, 8:29 a.m. OK MS C# TESTS 53 124 12390400 1400
18665772 faxse B June 23, 2016, 2:51 p.m. OK MS C# TESTS 53 124 14336000 1400
23384290 m1_k3 B Dec. 28, 2016, 6:24 p.m. OK MS C# TESTS 53 139 12902400 1400
19507274 vjudge4 B July 30, 2016, 2:41 a.m. OK MS C++ TESTS 53 31 0 1400
19392580 ws1003458499 B July 25, 2016, 2:26 a.m. OK MS C++ TESTS 53 31 409600 1400
61208503 vjudge4 B Sept. 24, 2019, 10:40 a.m. OK MS C++ TESTS 53 31 409600 1400
32145436 Ronnie007 B Nov. 8, 2017, 7:23 p.m. OK MS C++ TESTS 53 31 409600 1400
21061308 Isaac_wjl B Oct. 1, 2016, 8:33 a.m. OK MS C++ TESTS 53 31 409600 1400
18546719 Richardzhsh B June 17, 2016, 4:05 p.m. OK MS C++ TESTS 53 31 409600 1400
51621301 vjudge4 B March 21, 2019, 2:27 p.m. OK MS C++ TESTS 53 31 819200 1400
19459649 _yxg123 B July 28, 2016, 10:48 a.m. OK MS C++ TESTS 53 31 819200 1400
25445739 vjudge3 B March 13, 2017, 2:22 a.m. OK MS C++ TESTS 53 31 1945600 1400
35718697 2017ccut_wuqishuo B Feb. 26, 2018, 3:25 a.m. OK MS C++ TESTS 53 31 2048000 1400
67782223 Still_Theory B Dec. 28, 2019, 11:24 a.m. OK MS C++ 2017 TESTS 53 108 1024000 1400
57188431 felix412441 B July 17, 2019, 9:32 a.m. OK MS C++ 2017 TESTS 53 109 0 1400
19930204 s_p B Aug. 17, 2016, 3:16 p.m. OK Perl TESTS 53 155 16896000 1400
25227829 Unlenin B March 4, 2017, 9:30 p.m. OK PyPy 2 TESTS 53 93 29696000 1400
22721092 abhigupta4 B Dec. 6, 2016, 12:23 a.m. OK PyPy 2 TESTS 53 108 7782400 1400
19506860 jvmafra B July 30, 2016, 2:11 a.m. OK PyPy 2 TESTS 53 108 7884800 1400
19016128 tastymath75025 B July 10, 2016, 9:21 p.m. OK PyPy 2 TESTS 53 108 8396800 1400
23944373 w0n B Jan. 19, 2017, 12:39 p.m. OK PyPy 2 TESTS 53 109 29696000 1400
55944472 vjudge3 B June 22, 2019, 6:46 p.m. OK PyPy 2 TESTS 53 171 6860800 1400
56289314 vjudge3 B June 29, 2019, 10:31 p.m. OK PyPy 2 TESTS 53 171 7065600 1400
18299490 alexander.kolesnikoff B June 8, 2016, 2:22 p.m. OK PyPy 2 TESTS 53 202 28364800 1400
18340921 hellman_ B June 9, 2016, 12:09 p.m. OK PyPy 2 TESTS 53 327 38809600 1400
67939931 beethoven97 B Dec. 29, 2019, 11:26 p.m. OK PyPy 3 TESTS 53 233 10956800 1400
24076426 harshpatel19 B Jan. 23, 2017, 5:15 p.m. OK PyPy 3 TESTS 53 248 33484800 1400
63883486 kchau B Oct. 30, 2019, 10:39 p.m. OK PyPy 3 TESTS 53 295 10956800 1400
18295418 kien_metalrock B June 8, 2016, 8:56 a.m. OK Python 2 TESTS 53 140 10342400 1400
18351722 abc_1988_1106 B June 10, 2016, 3:58 a.m. OK Python 2 TESTS 53 155 10342400 1400
24340476 BlueHazard_rony B Feb. 1, 2017, 10:27 a.m. OK Python 2 TESTS 53 155 10444800 1400
22215620 cfcfs B Nov. 15, 2016, 1:30 a.m. OK Python 2 TESTS 53 156 5734400 1400
22037862 clarinet758 B Nov. 4, 2016, 3:47 p.m. OK Python 2 TESTS 53 156 5734400 1400
19531089 skywalker8000 B July 31, 2016, 5:50 a.m. OK Python 2 TESTS 53 156 6451200 1400
18547462 philma B June 17, 2016, 4:39 p.m. OK Python 2 TESTS 53 171 5836800 1400
21298150 ArthurSampaio B Oct. 8, 2016, 3:32 p.m. OK Python 2 TESTS 53 171 10342400 1400
18338716 artyom.fedosov B June 9, 2016, 9:28 a.m. OK Python 2 TESTS 53 171 10342400 1400
22229352 lovesh.baya B Nov. 15, 2016, 4:40 p.m. OK Python 2 TESTS 53 186 5632000 1400
19871220 SilverVoo B Aug. 14, 2016, 3:26 p.m. OK Python 3 TESTS 53 124 14848000 1400
27972995 jdh B June 22, 2017, 9:04 p.m. OK Python 3 TESTS 53 139 13824000 1400
29216432 Qumeric B Aug. 5, 2017, 10:44 a.m. OK Python 3 TESTS 53 155 11980800 1400
25693608 pimukthee B March 21, 2017, 3:12 p.m. OK Python 3 TESTS 53 155 11980800 1400
18396512 Blackmind B June 12, 2016, 5:36 p.m. OK Python 3 TESTS 53 155 13721600 1400
18404675 yinlei B June 13, 2016, 2:54 a.m. OK Python 3 TESTS 53 171 11980800 1400
35133800 anyabanya B Feb. 10, 2018, 6:15 p.m. OK Python 3 TESTS 53 171 14438400 1400
37555559 petiteteaparty B April 23, 2018, 5 p.m. OK Python 3 TESTS 53 171 14540800 1400
20629800 future_loops B Sept. 15, 2016, 1:32 a.m. OK Python 3 TESTS 53 186 9011200 1400
20439597 guzhoudiaoke B Sept. 7, 2016, 3:02 p.m. OK Python 3 TESTS 53 186 9113600 1400
18386675 MoOfMo B June 12, 2016, 8:35 a.m. OK Ruby TESTS 53 202 23552000 1400
41275077 bronze_man B Aug. 6, 2018, 12:43 p.m. OK Ruby TESTS 53 265 17100800 1400
19963630 SakurakoujiRuna B Aug. 19, 2016, 12:19 p.m. OK Ruby TESTS 53 265 23552000 1400
19263812 chopik B July 19, 2016, 10:26 p.m. OK Scala TESTS 53 311 6451200 1400
21630575 reldan B Oct. 21, 2016, 12:14 a.m. OK Scala TESTS 53 358 5222400 1400
18586918 pvasilyev B June 18, 2016, 8:54 p.m. OK Scala TESTS 53 373 5939200 1400

remove filters

Back to search problems