Codeforces Round 821 (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
1733 Codeforces Round 821 (Div. 2) FINISHED False 7200 68225099 Sept. 19, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 21033 ) A Consecutive Sum PROGRAMMING greedy sortings

B'You are given an array a with n integers. You can perform the following operation at most k times: After performing all operations, you have to select k consecutive elements, and the sum of the k elements becomes your score. Find the maximum score you can get. Here x bmod y denotes the remainder from dividing x by y . The first line contains one integer t ( 1 <= t <= 600 ) -- the number of test cases. Each test case consists of two lines. The first line of each test case contains two integers n and k ( 1 <= k <= n <= 100 ) -- the length of the array and the number in the statement above. The second line of each test case contains n integers a_1, a_2, ldots, a_n ( 0 <= a_i <= 10^9 ) -- the array itself. For each test case, print the maximum score you can get, one per line. In the first test case, we can get a score of 11 if we select a_1, a_2 without performing any operations. In the third test case, we can get a score of 15 if we first swap a_1 with a_4 and then select a_3, a_4, a_5 . '...

Tutorials

Codeforces Round #821 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
172744720 singhkrishnajsr143 A Sept. 19, 2022, 5:22 p.m. OK C# 10 TESTS 7 62 3276800
172767759 bluemegane A Sept. 19, 2022, 10:28 p.m. OK C# 8 TESTS 7 62 2867200
172787831 ansergeyg A Sept. 20, 2022, 5:36 a.m. OK C# 8 TESTS 8 77 3072000
172767556 bluemegane A Sept. 19, 2022, 10:22 p.m. OK C# 8 TESTS 7 93 3276800
172782654 hariompoddar123 A Sept. 20, 2022, 4:17 a.m. OK Clang++17 Diagnostics TESTS 7 358 0
172741864 Neha_krishna A Sept. 19, 2022, 5:07 p.m. OK Clang++20 Diagnostics TESTS 7 46 0
172788774 Chaitanya147 A Sept. 20, 2022, 5:48 a.m. OK Clang++20 Diagnostics TESTS 8 280 8396800
172781238 buzaibailan A Sept. 20, 2022, 3:49 a.m. OK Clang++20 Diagnostics TESTS 7 311 0
172789247 mokuai A Sept. 20, 2022, 5:55 a.m. OK GNU C++14 TESTS 8 15 0
172788530 unclezhou A Sept. 20, 2022, 5:45 a.m. OK GNU C++14 TESTS 8 15 0
172785062 ZHONGRYOU A Sept. 20, 2022, 4:56 a.m. OK GNU C++14 TESTS 8 15 0
172784473 wsy199857 A Sept. 20, 2022, 4:47 a.m. OK GNU C++14 TESTS 8 15 0
172774190 pazientzia_indartsua A Sept. 20, 2022, 1:33 a.m. OK GNU C++14 TESTS 7 15 0
172771957 TangM A Sept. 20, 2022, 12:47 a.m. OK GNU C++14 TESTS 7 15 0
172770230 Ekke A Sept. 20, 2022, 12:03 a.m. OK GNU C++14 TESTS 7 15 0
172770096 strange757 A Sept. 19, 2022, 11:59 p.m. OK GNU C++14 TESTS 7 15 0
172769132 _DarkHorse_ A Sept. 19, 2022, 11:25 p.m. OK GNU C++14 TESTS 7 15 0
172765194 forContests A Sept. 19, 2022, 9:25 p.m. OK GNU C++14 TESTS 7 15 0
172757400 star.lord A Sept. 19, 2022, 7:21 p.m. OK GNU C++17 TESTS 7 0 102400
172789583 naisheelpatel A Sept. 20, 2022, 5:59 a.m. OK GNU C++17 TESTS 8 15 0
172789233 Tunggg A Sept. 20, 2022, 5:55 a.m. OK GNU C++17 TESTS 8 15 0
172788661 CodeRookie666 A Sept. 20, 2022, 5:47 a.m. OK GNU C++17 TESTS 8 15 0
172787111 ali_red A Sept. 20, 2022, 5:26 a.m. OK GNU C++17 TESTS 8 15 0
172786949 fengxue2018 A Sept. 20, 2022, 5:24 a.m. OK GNU C++17 TESTS 8 15 0
172786444 wslzp A Sept. 20, 2022, 5:16 a.m. OK GNU C++17 TESTS 8 15 0
172784328 onepeopleheart A Sept. 20, 2022, 4:44 a.m. OK GNU C++17 TESTS 8 15 0
172784297 1prarthana A Sept. 20, 2022, 4:44 a.m. OK GNU C++17 TESTS 8 15 0
172783872 Iskandarov A Sept. 20, 2022, 4:37 a.m. OK GNU C++17 TESTS 7 15 0
172789150 Ahmed_Ramadan74 A Sept. 20, 2022, 5:54 a.m. OK GNU C++17 (64) TESTS 8 15 0
172787764 Ricarpy_ A Sept. 20, 2022, 5:35 a.m. OK GNU C++17 (64) TESTS 8 15 0
172787266 norikame A Sept. 20, 2022, 5:28 a.m. OK GNU C++17 (64) TESTS 8 15 0
172784204 ChenHuiyang A Sept. 20, 2022, 4:42 a.m. OK GNU C++17 (64) TESTS 7 15 0
172783379 yuuuuuuu09 A Sept. 20, 2022, 4:29 a.m. OK GNU C++17 (64) TESTS 7 15 0
172779212 Amanmaurya_2012 A Sept. 20, 2022, 3:13 a.m. OK GNU C++17 (64) TESTS 7 15 0
172779165 zhangmj2008 A Sept. 20, 2022, 3:12 a.m. OK GNU C++17 (64) TESTS 7 15 0
172778117 haengsyo A Sept. 20, 2022, 2:53 a.m. OK GNU C++17 (64) TESTS 7 15 0
172777386 hbnd_jaw1 A Sept. 20, 2022, 2:38 a.m. OK GNU C++17 (64) TESTS 7 15 0
172777006 NuclearWinter A Sept. 20, 2022, 2:31 a.m. OK GNU C++17 (64) TESTS 7 15 0

remove filters

Back to search problems