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 |
---|---|---|---|---|---|---|
1796 | Educational Codeforces Round 144 (Rated for Div. 2) | FINISHED | False | 7200 | 54228299 | Feb. 28, 2023, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 4422 ) | D | Maximum Subarray | PROGRAMMING | data structures dp greedy |
B"You are given an array a_1, a_2, ... , a_n , consisting of n integers. You are also given two integers k and x . You have to perform the following operation exactly once: add x to the elements on exactly k distinct positions, and subtract x from all the others. For example, if a = [2, -1, 2, 3] , k = 1 , x = 2 , and we have picked the first element, then after the operation the array a = [4, -3, 0, 1] . Let f(a) be the maximum possible sum of a subarray of a . The subarray of a is a contiguous part of the array a , i. xe2 x80 x89e. the array a_i, a_{i + 1}, ... , a_j for some 1 <= i <= j <= n . An empty subarray should also be considered, it has sum 0 . Let the array a' be the array a after applying the aforementioned operation. Apply the operation in such a way that f(a') is the maximum possible, and print the maximum possible value of f(a') . The first line contains a single integer t ( 1 <= t <= 10^4 ) -- the number of test cases. The first line of each test case contains three integers n , k and x ( 1 <= n <= 2 cdot 10^5 ; 0 <= k <= min(20, n) ; -10^9 <= x <= 10^9 ). The second line contains n integers a_1, a_2, ... , a_n ( -10^9 <= a_i <= 10^9 ). The sum of n over all test cases doesn't exceed 2 cdot 10^5 . For each test case, print one integer -- the maximum possible value of f(a') . "... |
Educational Codeforces Round 144 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
195398287 | Tdyx | D | March 1, 2023, 2:52 a.m. | OK | C# 10 | TESTS | 15 | 78 | 27852800 | ||
195357894 | W_Szymanski | D | Feb. 28, 2023, 5:03 p.m. | OK | C# 10 | TESTS | 15 | 140 | 97689600 | ||
195369748 | rainboy | D | Feb. 28, 2023, 6:36 p.m. | OK | GNU C11 | TESTS | 15 | 78 | 2457600 | ||
195395598 | JoesSR | D | March 1, 2023, 1:44 a.m. | OK | GNU C++14 | TESTS | 15 | 62 | 3993600 | ||
195398262 | wsyhb | D | March 1, 2023, 2:51 a.m. | OK | GNU C++14 | TESTS | 15 | 78 | 3481600 | ||
195391961 | my_name_is_handsome | D | March 1, 2023, 12:06 a.m. | OK | GNU C++14 | TESTS | 15 | 78 | 4812800 | ||
195354675 | sprads | D | Feb. 28, 2023, 4:46 p.m. | OK | GNU C++14 | TESTS | 15 | 78 | 8396800 | ||
195391481 | 2019wangminxiao | D | Feb. 28, 2023, 11:52 p.m. | OK | GNU C++14 | TESTS | 15 | 93 | 40857600 | ||
195394775 | yyyyyd | D | March 1, 2023, 1:21 a.m. | OK | GNU C++14 | TESTS | 15 | 93 | 40857600 | ||
195395683 | Cxny | D | March 1, 2023, 1:47 a.m. | OK | GNU C++14 | TESTS | 15 | 93 | 48947200 | ||
195355271 | Ice_teapoy | D | Feb. 28, 2023, 4:48 p.m. | OK | GNU C++14 | TESTS | 15 | 93 | 176332800 | ||
195393530 | afuafu | D | March 1, 2023, 12:49 a.m. | OK | GNU C++14 | TESTS | 15 | 108 | 17715200 | ||
195393922 | KING_OF_TURTLE | D | March 1, 2023, 1 a.m. | OK | GNU C++14 | TESTS | 15 | 108 | 34508800 | ||
195368975 | ventusliberum | D | Feb. 28, 2023, 6:28 p.m. | OK | GNU C++17 | TESTS | 15 | 62 | 3174400 | ||
195393468 | yangjl | D | March 1, 2023, 12:47 a.m. | OK | GNU C++17 | TESTS | 15 | 77 | 2457600 | ||
195357834 | a757403 | D | Feb. 28, 2023, 5:02 p.m. | OK | GNU C++17 | TESTS | 15 | 77 | 5939200 | ||
195349925 | regain0001 | D | Feb. 28, 2023, 4:30 p.m. | OK | GNU C++17 | TESTS | 15 | 77 | 42496000 | ||
195360659 | __HaPpY | D | Feb. 28, 2023, 5:21 p.m. | OK | GNU C++17 | TESTS | 15 | 78 | 3174400 | ||
195361981 | drome | D | Feb. 28, 2023, 5:31 p.m. | OK | GNU C++17 | TESTS | 15 | 78 | 3174400 | ||
195387816 | sdyakonov | D | Feb. 28, 2023, 10:18 p.m. | OK | GNU C++17 | TESTS | 15 | 78 | 4812800 | ||
195399994 | Ali_Taher | D | March 1, 2023, 3:31 a.m. | OK | GNU C++17 | TESTS | 15 | 78 | 4812800 | ||
195382353 | igz | D | Feb. 28, 2023, 8:52 p.m. | OK | GNU C++17 | TESTS | 15 | 78 | 5632000 | ||
195374213 | rishisankar | D | Feb. 28, 2023, 7:19 p.m. | OK | GNU C++17 | TESTS | 15 | 78 | 6144000 | ||
195368684 | iamnifer | D | Feb. 28, 2023, 6:25 p.m. | OK | GNU C++17 (64) | TESTS | 15 | 31 | 5836800 | ||
195368459 | iamnifer | D | Feb. 28, 2023, 6:24 p.m. | OK | GNU C++17 (64) | TESTS | 15 | 31 | 5836800 | ||
195368035 | iamnifer | D | Feb. 28, 2023, 6:20 p.m. | OK | GNU C++17 (64) | TESTS | 15 | 31 | 5836800 | ||
195367888 | iamnifer | D | Feb. 28, 2023, 6:19 p.m. | OK | GNU C++17 (64) | TESTS | 15 | 31 | 5836800 | ||
195368728 | iamnifer | D | Feb. 28, 2023, 6:26 p.m. | OK | GNU C++17 (64) | TESTS | 15 | 31 | 5836800 | ||
195382676 | tredsused70 | D | Feb. 28, 2023, 8:56 p.m. | OK | GNU C++17 (64) | TESTS | 15 | 31 | 8704000 | ||
195357548 | nicksms | D | Feb. 28, 2023, 5 p.m. | OK | GNU C++17 (64) | TESTS | 15 | 46 | 8601600 | ||
195351868 | artcosec | D | Feb. 28, 2023, 4:34 p.m. | OK | GNU C++17 (64) | TESTS | 15 | 61 | 4812800 | ||
195348840 | chuchu | D | Feb. 28, 2023, 4:28 p.m. | OK | GNU C++17 (64) | TESTS | 15 | 61 | 12800000 | ||
195367922 | BalBec | D | Feb. 28, 2023, 6:19 p.m. | OK | GNU C++17 (64) | TESTS | 15 | 62 | 1638400 | ||
195379407 | tredsused70 | D | Feb. 28, 2023, 8:17 p.m. | OK | GNU C++20 (64) | TESTS | 15 | 31 | 8704000 | ||
195382623 | tredsused70 | D | Feb. 28, 2023, 8:56 p.m. | OK | GNU C++20 (64) | TESTS | 15 | 31 | 8704000 | ||
195405216 | chinaN0.1 | D | March 1, 2023, 5:11 a.m. | OK | GNU C++20 (64) | TESTS | 15 | 46 | 0 | ||
195379521 | Yomapeed | D | Feb. 28, 2023, 8:18 p.m. | OK | GNU C++20 (64) | TESTS | 15 | 46 | 1638400 | ||
195368704 | BalBec | D | Feb. 28, 2023, 6:26 p.m. | OK | GNU C++20 (64) | TESTS | 15 | 46 | 1638400 | ||
195368687 | BalBec | D | Feb. 28, 2023, 6:25 p.m. | OK | GNU C++20 (64) | TESTS | 15 | 46 | 1638400 | ||
195368382 | BalBec | D | Feb. 28, 2023, 6:23 p.m. | OK | GNU C++20 (64) | TESTS | 15 | 46 | 1638400 | ||
195367958 | BalBec | D | Feb. 28, 2023, 6:19 p.m. | OK | GNU C++20 (64) | TESTS | 15 | 46 | 1638400 | ||
195367902 | BalBec | D | Feb. 28, 2023, 6:19 p.m. | OK | GNU C++20 (64) | TESTS | 15 | 46 | 1638400 | ||
195388980 | sam571128 iambamzhuuuuu | D | Feb. 28, 2023, 10:45 p.m. | OK | GNU C++20 (64) | TESTS | 15 | 46 | 1638400 | ||
195358038 | profchi | D | Feb. 28, 2023, 5:03 p.m. | OK | Java 11 | TESTS | 15 | 265 | 4403200 | ||
195359791 | kamranm | D | Feb. 28, 2023, 5:15 p.m. | OK | Java 11 | TESTS | 15 | 421 | 208793600 | ||
195407881 | dzhi | D | March 1, 2023, 5:50 a.m. | OK | Java 11 | TESTS | 15 | 764 | 7168000 | ||
195407133 | dzhi | D | March 1, 2023, 5:39 a.m. | OK | Java 11 | TESTS | 15 | 810 | 8704000 | ||
195398005 | Socrates1232 | D | March 1, 2023, 2:45 a.m. | OK | Java 17 | TESTS | 15 | 218 | 716800 | ||
195358234 | golions | D | Feb. 28, 2023, 5:05 p.m. | OK | Java 8 | TESTS | 15 | 374 | 63488000 | ||
195360312 | ouhaiyo | D | Feb. 28, 2023, 5:18 p.m. | OK | Java 8 | TESTS | 15 | 405 | 716800 | ||
195366629 | IanISam | D | Feb. 28, 2023, 6:07 p.m. | OK | Java 8 | TESTS | 15 | 452 | 53248000 | ||
195361974 | invincible777 | D | Feb. 28, 2023, 5:31 p.m. | OK | Java 8 | TESTS | 15 | 1247 | 284774400 | ||
195360850 | shehebe | D | Feb. 28, 2023, 5:22 p.m. | OK | PyPy 3 | TESTS | 15 | 951 | 55910400 | ||
195355426 | yupooh | D | Feb. 28, 2023, 4:49 p.m. | OK | PyPy 3-64 | TESTS | 15 | 233 | 29388800 | ||
195355157 | Divyanshu_81 | D | Feb. 28, 2023, 4:48 p.m. | OK | PyPy 3-64 | TESTS | 15 | 249 | 59187200 | ||
195399897 | jl1230 | D | March 1, 2023, 3:28 a.m. | OK | PyPy 3-64 | TESTS | 15 | 280 | 27545600 | ||
195394404 | RobinFromTheHood | D | March 1, 2023, 1:12 a.m. | OK | PyPy 3-64 | TESTS | 15 | 280 | 37478400 | ||
195394691 | RobinFromTheHood | D | March 1, 2023, 1:19 a.m. | OK | PyPy 3-64 | TESTS | 15 | 295 | 36147200 | ||
195370443 | SoleProprietor | D | Feb. 28, 2023, 6:42 p.m. | OK | PyPy 3-64 | TESTS | 15 | 296 | 24371200 | ||
195364584 | 00zijian | D | Feb. 28, 2023, 5:51 p.m. | OK | PyPy 3-64 | TESTS | 15 | 296 | 27033600 | ||
195361577 | Leocosmos | D | Feb. 28, 2023, 5:28 p.m. | OK | PyPy 3-64 | TESTS | 15 | 311 | 34201600 | ||
195354030 | ZrjaK | D | Feb. 28, 2023, 4:43 p.m. | OK | PyPy 3-64 | TESTS | 15 | 327 | 44339200 | ||
195373163 | roaris | D | Feb. 28, 2023, 7:10 p.m. | OK | PyPy 3-64 | TESTS | 15 | 342 | 41984000 | ||
195353398 | wnmrmr | D | Feb. 28, 2023, 4:39 p.m. | OK | Rust 2021 | TESTS | 15 | 62 | 40550400 | ||
195368866 | Death_on_2_Legs | D | Feb. 28, 2023, 6:27 p.m. | OK | Rust 2021 | TESTS | 15 | 62 | 47308800 | ||
195365191 | Death_on_2_Legs | D | Feb. 28, 2023, 5:56 p.m. | OK | Rust 2021 | TESTS | 15 | 77 | 47308800 |
Back to search problems