Codeforces Round 424 (Div. 1, rated, based on VK Cup Finals)

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
830 Codeforces Round 424 (Div. 1, rated, based on VK Cup Finals) FINISHED False 7200 237394511 July 13, 2017, 3:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1214 ) C Bamboo Partition PROGRAMMING brute force data structures implementation math number theory sortings two pointers 2500

B'Vladimir wants to modernize partitions in his office. To make the office more comfortable he decided to remove a partition and plant several bamboos in a row. He thinks it would be nice if there are n bamboos in a row, and the i-th from the left is ai meters high. Vladimir has just planted n bamboos in a row, each of which has height 0 meters right now, but they grow 1 meter each day. In order to make the partition nice Vladimir can cut each bamboo once at any height (no greater that the height of the bamboo), and then the bamboo will stop growing. Vladimir wants to check the bamboos each d days (i.e. d days after he planted, then after 2d days and so on), and cut the bamboos that reached the required height. Vladimir wants the total length of bamboo parts he will cut off to be no greater than k meters. What is the maximum value d he can choose so that he can achieve what he wants without cutting off more than k meters of bamboo? 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 x89100, 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891011) -- the number of bamboos and the maximum total length of cut parts, in meters. The second line contains n integers a1, xe2 x80 x89a2, xe2 x80 x89..., xe2 x80 x89an (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ai xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89109) -- the required heights of bamboos, in meters. Print a single integer -- the maximum value of d such that Vladimir can reach his goal. In the first example Vladimir can check bamboos each 3 days. Then he will cut the first and the second bamboos after 3 days, and the third bamboo after 6 days. The total length of cut parts is 2 xe2 x80 x89+ xe2 x80 x890 xe2 x80 x89+ xe2 x80 x891 xe2 x80 x89= xe2 x80 x893 meters. '...

Tutorials

Codeforces Round #424 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
30470379 toida12chu C Sept. 18, 2017, 2:22 p.m. OK FPC TESTS 59 1699 242176000 2500
28558682 rainboy C July 14, 2017, 10:45 p.m. OK GNU C TESTS 59 826 27238400 2500
29967725 imone C Sept. 1, 2017, 9:15 a.m. OK GNU C++ TESTS 59 109 0 2500
28588908 huangzhen C July 16, 2017, 6:31 a.m. OK GNU C++ TESTS 59 124 2867200 2500
28521260 buko C July 13, 2017, 4:35 p.m. OK GNU C++ TESTS 59 171 15667200 2500
29799228 1919810 C Aug. 26, 2017, 6:59 a.m. OK GNU C++ TESTS 59 280 168550400 2500
28746633 vjudge1 C July 21, 2017, 9:44 a.m. OK GNU C++ TESTS 59 296 15360000 2500
28533063 co_farmer C July 14, 2017, 12:36 a.m. OK GNU C++ TESTS 59 312 82227200 2500
28527161 guille C July 13, 2017, 6:12 p.m. OK GNU C++ TESTS 59 327 2150400 2500
30577962 vjudge1 C Sept. 21, 2017, 12:50 p.m. OK GNU C++ TESTS 59 343 50278400 2500
28513739 SanSiroWaltz C July 13, 2017, 3:39 p.m. OK GNU C++ TESTS 59 358 2150400 2500
28596806 flower C July 16, 2017, 1:09 p.m. OK GNU C++ TESTS 59 374 1945600 2500
29805712 vjudge5 C Aug. 26, 2017, 12:01 p.m. OK GNU C++11 TESTS 59 46 0 2500
40980490 ReaLNero1 C July 30, 2018, 5:33 p.m. OK GNU C++11 TESTS 59 77 0 2500
40529052 RNS_MHB C July 19, 2018, 1:13 a.m. OK GNU C++11 TESTS 59 78 0 2500
55532603 __trrbivial_innocence C June 13, 2019, 2:25 p.m. OK GNU C++11 TESTS 59 93 0 2500
29541797 lawrenceli C Aug. 18, 2017, 2:27 a.m. OK GNU C++11 TESTS 59 93 4198400 2500
28527041 andwho C July 13, 2017, 6:09 p.m. OK GNU C++11 TESTS 59 171 2048000 2500
28526875 andwho C July 13, 2017, 6:06 p.m. OK GNU C++11 TESTS 59 171 2150400 2500
28527079 Honour_00 C July 13, 2017, 6:10 p.m. OK GNU C++11 TESTS 59 186 20172800 2500
56871063 luogu_bot5 C July 12, 2019, 6:25 a.m. OK GNU C++11 TESTS 59 202 0 2500
56871048 PaulShi C July 12, 2019, 6:25 a.m. OK GNU C++11 TESTS 59 202 0 2500
28728763 Izanagi C July 20, 2017, 3:41 p.m. OK GNU C++14 TESTS 59 108 1945600 2500
28528618 LiChenKoh C July 13, 2017, 7:03 p.m. OK GNU C++14 TESTS 59 108 1945600 2500
28515795 --d C July 13, 2017, 3:52 p.m. OK GNU C++14 TESTS 59 109 1945600 2500
28528266 LiChenKoh C July 13, 2017, 6:47 p.m. OK GNU C++14 TESTS 59 124 1945600 2500
28526987 AndreySergunin C July 13, 2017, 6:09 p.m. OK GNU C++14 TESTS 59 140 20889600 2500
28597331 chintu C July 16, 2017, 1:36 p.m. OK GNU C++14 TESTS 59 156 1945600 2500
28514258 MiFaFaOvO C July 13, 2017, 3:42 p.m. OK GNU C++14 TESTS 59 156 1945600 2500
29261513 mengrao C Aug. 7, 2017, 9:45 a.m. OK GNU C++14 TESTS 59 187 1945600 2500
28927938 193s C July 27, 2017, 10:34 a.m. OK GNU C++14 TESTS 59 187 27136000 2500
45705347 vjudge3 C Nov. 14, 2018, 11:16 a.m. OK GNU C++14 TESTS 59 217 19046400 2500
55570393 Martin53 C June 14, 2019, 6:17 p.m. OK GNU C++17 TESTS 59 109 0 2500
50563992 ivan100sic C Feb. 27, 2019, 12:21 p.m. OK GNU C++17 TESTS 59 124 0 2500
60455551 FlowerOfSorrow C Sept. 12, 2019, 5:48 p.m. OK GNU C++17 TESTS 59 171 25292800 2500
41936070 gbuenoandrade C Aug. 21, 2018, 1:02 p.m. OK GNU C++17 TESTS 59 342 50483200 2500
69441699 viniciustht C Jan. 23, 2020, 10:10 p.m. OK GNU C++17 TESTS 59 358 0 2500
69272655 bentoper C Jan. 21, 2020, 10:35 p.m. OK GNU C++17 TESTS 59 374 0 2500
55519353 Ycircle C June 13, 2019, 7:33 a.m. OK GNU C++17 TESTS 59 374 0 2500
69274058 noronha C Jan. 22, 2020, 12:10 a.m. OK GNU C++17 TESTS 59 390 0 2500
69274074 vjudge4 C Jan. 22, 2020, 12:11 a.m. OK GNU C++17 TESTS 59 420 0 2500
43405743 vjudge1 C Sept. 25, 2018, 11:23 a.m. OK GNU C++17 TESTS 59 436 28160000 2500
29673174 mualanhlung017 C Aug. 22, 2017, 4:03 a.m. OK Java 8 TESTS 59 452 26828800 2500
28526612 mmaxio C July 13, 2017, 6:01 p.m. OK Java 8 TESTS 59 467 61440000 2500
28664091 happybelly C July 18, 2017, 9:42 a.m. OK Java 8 TESTS 59 499 182272000 2500
28663398 happybelly C July 18, 2017, 9:12 a.m. OK Java 8 TESTS 59 529 182272000 2500
29516954 tri C Aug. 17, 2017, 3:13 a.m. OK Java 8 TESTS 59 654 26828800 2500
28558683 Dukkha C July 14, 2017, 10:45 p.m. OK Java 8 TESTS 59 686 46694400 2500
28514842 Petr C July 13, 2017, 3:46 p.m. OK Java 8 TESTS 59 842 166297600 2500
28519341 uwi C July 13, 2017, 4:18 p.m. OK Java 8 TESTS 59 920 21094400 2500
28670978 wolfib C July 18, 2017, 2:24 p.m. OK Java 8 TESTS 59 1153 49868800 2500
28531538 dusty.and.rusty C July 13, 2017, 10:15 p.m. OK Java 8 TESTS 59 1309 21094400 2500
28525902 chokudai C July 13, 2017, 5:48 p.m. OK MS C# TESTS 59 1902 9318400 2500
28520010 wa1tz719 C July 13, 2017, 4:24 p.m. OK MS C++ TESTS 59 577 3686400 2500
28521138 robinyu C July 13, 2017, 4:33 p.m. OK MS C++ TESTS 59 624 136704000 2500
29806649 vjudge1 C Aug. 26, 2017, 1:01 p.m. OK MS C++ TESTS 59 841 25600000 2500
29806694 vjudge1 C Aug. 26, 2017, 1:03 p.m. OK MS C++ TESTS 59 842 25600000 2500
30636391 Maffka C Sept. 23, 2017, 9:12 a.m. OK MS C++ TESTS 59 997 29696000 2500
28526065 Filyan C July 13, 2017, 5:50 p.m. OK MS C++ TESTS 59 1777 50073600 2500
28533912 maxplus C July 14, 2017, 1:28 a.m. OK PyPy 2 TESTS 59 655 81510400 2500
28533723 maxplus C July 14, 2017, 1:17 a.m. OK PyPy 2 TESTS 59 686 79155200 2500
28533514 maxplus C July 14, 2017, 1:03 a.m. OK PyPy 2 TESTS 59 701 79257600 2500
28533652 maxplus C July 14, 2017, 1:12 a.m. OK PyPy 2 TESTS 59 702 79360000 2500
28533743 maxplus C July 14, 2017, 1:19 a.m. OK PyPy 2 TESTS 59 733 79257600 2500
28533502 maxplus C July 14, 2017, 1:02 a.m. OK PyPy 2 TESTS 59 763 74649600 2500
28533695 maxplus C July 14, 2017, 1:16 a.m. OK PyPy 2 TESTS 59 873 79257600 2500
28534254 maxplus C July 14, 2017, 1:48 a.m. OK PyPy 2 TESTS 59 950 78233600 2500
28534282 maxplus C July 14, 2017, 1:50 a.m. OK PyPy 2 TESTS 59 950 78438400 2500
28533893 maxplus C July 14, 2017, 1:27 a.m. OK PyPy 2 TESTS 59 1496 93286400 2500
28533350 maxplus C July 14, 2017, 12:54 a.m. OK PyPy 3 TESTS 59 1076 109772800 2500
28533363 maxplus C July 14, 2017, 12:55 a.m. OK PyPy 3 TESTS 59 1231 78438400 2500
28533388 maxplus C July 14, 2017, 12:56 a.m. OK PyPy 3 TESTS 59 1497 158822400 2500
28533483 maxplus C July 14, 2017, 1:01 a.m. OK Python 2 TESTS 59 1840 43417600 2500
28533931 maxplus C July 14, 2017, 1:29 a.m. OK Python 2 TESTS 59 1840 45568000 2500
28535782 maxplus C July 14, 2017, 3:08 a.m. OK Python 3 TESTS 59 1231 48025600 2500

remove filters

Back to search problems