Codeforces Round 521 (Div. 3)

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
1077 Codeforces Round 521 (Div. 3) FINISHED False 7200 189444299 Nov. 16, 2018, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 4473 ) F1 Pictures with Kittens (easy version) PROGRAMMING dp 2100

B'The only difference between easy and hard versions is the constraints. Vova likes pictures with kittens. The news feed in the social network he uses can be represented as an array of n consecutive pictures (with kittens, of course). Vova likes all these pictures, but some are more beautiful than the others: the i -th picture has beauty a_i . Vova wants to repost exactly x pictures in such a way that: For example, if k=1 then Vova has to repost all the pictures in the news feed. If k=2 then Vova can skip some pictures, but between every pair of consecutive pictures Vova has to repost at least one of them. Your task is to calculate the maximum possible sum of values of reposted pictures if Vova follows conditions described above, or say that there is no way to satisfy all conditions. The first line of the input contains three integers n, k and x ( 1 <= k, x <= n <= 200 ) -- the number of pictures in the news feed, the minimum length of segment with at least one repost in it and the number of pictures Vova is ready to repost. The second line of the input contains n integers a_1, a_2, ... , a_n ( 1 <= a_i <= 10^9 ), where a_i is the beauty of the i -th picture. Print -1 if there is no way to repost some pictures to satisfy all the conditions in the problem statement. Otherwise print one integer -- the maximum sum of values of reposted pictures if Vova follows conditions described in the problem statement. '...

Tutorials

Codeforces Round #521 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
46471000 adityareddy22 F1 Dec. 2, 2018, 7:26 a.m. OK Clang++17 Diagnostics TESTS 70 233 63385600 2100
55100370 Denor F1 June 4, 2019, 7:47 p.m. OK Delphi TESTS 70 46 409600 2100
46646223 mranjan7 F1 Dec. 5, 2018, 12:02 p.m. OK GNU C11 TESTS 70 31 307200 2100
50619578 vjudge3 F1 Feb. 28, 2019, 10:58 p.m. OK GNU C11 TESTS 70 46 74240000 2100
47723648 cjdsg F1 Dec. 30, 2018, 12:56 p.m. OK GNU C++11 TESTS 70 31 0 2100
53275640 Umi F1 April 25, 2019, 9:14 a.m. OK GNU C++11 TESTS 70 31 102400 2100
47504171 EsmaelSY F1 Dec. 25, 2018, 8:32 p.m. OK GNU C++11 TESTS 70 31 102400 2100
46364572 vjudge2 F1 Nov. 29, 2018, 12:40 p.m. OK GNU C++11 TESTS 70 31 102400 2100
46096878 fwat F1 Nov. 23, 2018, 1:25 a.m. OK GNU C++11 TESTS 70 31 102400 2100
54564973 eriksuenderhauf F1 May 24, 2019, 3:53 p.m. OK GNU C++11 TESTS 70 31 102400 2100
58655590 LittleBeetle F1 Aug. 12, 2019, 8:58 a.m. OK GNU C++11 TESTS 70 31 102400 2100
49174427 Vijaykrishna F1 Jan. 29, 2019, 7:37 p.m. OK GNU C++11 TESTS 70 31 204800 2100
58655608 LittleBeetle F1 Aug. 12, 2019, 8:58 a.m. OK GNU C++11 TESTS 70 31 204800 2100
49851008 yxc2003 F1 Feb. 13, 2019, 3:39 a.m. OK GNU C++11 TESTS 70 31 204800 2100
46040066 FRR-1 F1 Nov. 21, 2018, 6:59 p.m. OK GNU C++14 TESTS 70 30 307200 2100
50683333 windhs F1 March 2, 2019, 12:31 p.m. OK GNU C++14 TESTS 70 30 307200 2100
48103103 sharmaritvik60 F1 Jan. 9, 2019, 12:02 a.m. OK GNU C++14 TESTS 70 30 307200 2100
46252849 hit023 F1 Nov. 26, 2018, 3:03 p.m. OK GNU C++14 TESTS 70 30 409600 2100
46049284 AsiKesh F1 Nov. 22, 2018, 5:58 a.m. OK GNU C++14 TESTS 70 30 409600 2100
46141982 dakuhosu F1 Nov. 24, 2018, 7 a.m. OK GNU C++14 TESTS 70 30 2048000 2100
46455253 aryanv F1 Dec. 1, 2018, 6:12 p.m. OK GNU C++14 TESTS 70 30 8089600 2100
51248691 vjudge1 F1 March 13, 2019, 7:07 a.m. OK GNU C++14 TESTS 70 30 35328000 2100
46190785 __ShaW F1 Nov. 25, 2018, 4:52 a.m. OK GNU C++14 TESTS 70 30 200601600 2100
53468217 vjudge5 F1 April 28, 2019, 11:22 a.m. OK GNU C++14 TESTS 70 30 201216000 2100
50806779 Lxyzzz F1 March 5, 2019, 6:07 a.m. OK GNU C++17 TESTS 70 15 307200 2100
67757089 MADKIRUS F1 Dec. 27, 2019, 7:58 p.m. OK GNU C++17 TESTS 70 15 409600 2100
49196083 Anastasia146 F1 Jan. 30, 2019, 10:30 a.m. OK GNU C++17 TESTS 70 15 716800 2100
47540358 vjudge2 F1 Dec. 27, 2018, 6:35 a.m. OK GNU C++17 TESTS 70 30 307200 2100
51617674 BegNar F1 March 21, 2019, 1:05 p.m. OK GNU C++17 TESTS 70 30 307200 2100
47790627 _KIDRAH F1 Dec. 31, 2018, 1:10 p.m. OK GNU C++17 TESTS 70 30 307200 2100
48212626 eddy1021 F1 Jan. 11, 2019, 12:56 p.m. OK GNU C++17 TESTS 70 30 409600 2100
58671192 _PortgasD.Ace_ F1 Aug. 12, 2019, 2:29 p.m. OK GNU C++17 TESTS 70 30 409600 2100
49560712 VGZD F1 Feb. 7, 2019, 12:25 p.m. OK GNU C++17 TESTS 70 30 614400 2100
47458926 Ray_ F1 Dec. 24, 2018, 2:04 p.m. OK GNU C++17 TESTS 70 30 716800 2100
57298087 kompu F1 July 18, 2019, 8:39 p.m. OK Go TESTS 70 46 0 2100
46769501 dyhu083 F1 Dec. 8, 2018, 4:08 p.m. OK Java 8 TESTS 70 109 0 2100
48266505 sas4eka F1 Jan. 11, 2019, 8:37 p.m. OK Java 8 TESTS 70 109 0 2100
46030930 tsumit023 F1 Nov. 21, 2018, 1:41 p.m. OK Java 8 TESTS 70 109 0 2100
66442115 satya26 F1 Dec. 7, 2019, 8:18 a.m. OK Java 8 TESTS 70 124 0 2100
65793976 Agnimandur F1 Nov. 27, 2019, 2:26 a.m. OK Java 8 TESTS 70 124 0 2100
52760872 mikkk F1 April 14, 2019, 8:37 p.m. OK Java 8 TESTS 70 124 0 2100
51905015 caoash F1 March 27, 2019, 3:05 p.m. OK Java 8 TESTS 70 124 0 2100
48649538 hongquanntct F1 Jan. 20, 2019, 7:44 p.m. OK Java 8 TESTS 70 124 0 2100
48266488 sas4eka F1 Jan. 11, 2019, 8:37 p.m. OK Java 8 TESTS 70 124 0 2100
48266367 sas4eka F1 Jan. 11, 2019, 8:32 p.m. OK Java 8 TESTS 70 124 0 2100
46938186 Mem F1 Dec. 12, 2018, 2:59 p.m. OK Mono C# TESTS 70 77 3788800 2100
69033464 hibatibati F1 Jan. 18, 2020, 8:35 a.m. OK Mono C# TESTS 70 77 4915200 2100
47097021 vjudge1 F1 Dec. 16, 2018, 8:56 a.m. OK MS C++ TESTS 70 31 307200 2100
47094658 vjudge3 F1 Dec. 16, 2018, 7:50 a.m. OK MS C++ TESTS 70 31 307200 2100
48405751 vjudge5 F1 Jan. 15, 2019, 3:28 a.m. OK MS C++ TESTS 70 31 307200 2100
48920932 Houbunsha F1 Jan. 25, 2019, 7:48 a.m. OK MS C++ TESTS 70 31 307200 2100
46197400 vjudge4 F1 Nov. 25, 2018, 9:08 a.m. OK MS C++ TESTS 70 31 409600 2100
53462594 vjudge5 F1 April 28, 2019, 8:10 a.m. OK MS C++ TESTS 70 31 409600 2100
47129603 vjudge5 F1 Dec. 16, 2018, 4:10 p.m. OK MS C++ TESTS 70 31 409600 2100
47804813 jernchr11 F1 Jan. 1, 2019, 6:01 a.m. OK MS C++ TESTS 70 31 512000 2100
47805547 jernchr11 F1 Jan. 1, 2019, 6:49 a.m. OK MS C++ TESTS 70 31 614400 2100
56308333 vjudge5 F1 June 30, 2019, 1:16 p.m. OK MS C++ TESTS 70 31 716800 2100
58345482 yorky F1 Aug. 5, 2019, 2:47 p.m. OK MS C++ 2017 TESTS 70 46 512000 2100
49683813 sk0 F1 Feb. 10, 2019, 5:31 a.m. OK Ocaml TESTS 70 217 37376000 2100
46025005 c1729 F1 Nov. 21, 2018, 10:41 a.m. OK PyPy 2 TESTS 70 421 5120000 2100
54850802 gatsko F1 May 30, 2019, 4:29 p.m. OK PyPy 2 TESTS 70 1169 13619200 2100
46204031 meooow F1 Nov. 25, 2018, 1:12 p.m. OK PyPy 3 TESTS 70 171 2457600 2100
46203303 meooow F1 Nov. 25, 2018, 12:47 p.m. OK PyPy 3 TESTS 70 264 3584000 2100
57286451 brosucks F1 July 18, 2019, 2:49 p.m. OK PyPy 3 TESTS 70 264 5734400 2100
50886304 c1729 F1 March 6, 2019, 11:27 a.m. OK Python 2 TESTS 70 217 102400 2100
46245276 alvinpiter F1 Nov. 26, 2018, 11:02 a.m. OK Python 2 TESTS 70 1778 1638400 2100
50609047 hanga97 F1 Feb. 28, 2019, 4 p.m. OK Python 3 TESTS 70 701 3379200 2100
58975983 vjudge1 F1 Aug. 18, 2019, 12:50 a.m. OK Python 3 TESTS 70 1419 819200 2100
46133637 Yans F1 Nov. 24, 2018, 3:57 a.m. OK Python 3 TESTS 70 1996 1433600 2100
65730108 sansen F1 Nov. 26, 2019, 4:22 a.m. OK Rust TESTS 70 31 0 2100
46252333 yakamoto F1 Nov. 26, 2018, 2:46 p.m. OK Scala TESTS 70 421 0 2100
57931827 dcordb F1 July 29, 2019, 9 a.m. OK Scala TESTS 70 483 0 2100

remove filters

Back to search problems