Codeforces Round 783 (Div. 1)

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
1667 Codeforces Round 783 (Div. 1) FINISHED False 7200 86801063 April 19, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3807 ) B Optimal Partition PROGRAMMING data structures dp 2100

B'You are given an array a consisting of n integers. You should divide a into continuous non-empty subarrays (there are 2^{n-1} ways to do that). Let s=a_l+a_{l+1}+ ldots+a_r . The value of a subarray a_l, a_{l+1}, ldots, a_r is: The input consists of multiple test cases. The first line contains a single integer t ( 1 <= t <= 5 cdot 10^5 ) -- the number of test cases. The description of the test cases follows. The first line of each test case contains a single integer n ( 1 <= n <= 5 cdot 10^5 ). The second line of each test case contains n integers a_1 , a_2 , ..., a_n ( -10^9 <= a_i <= 10^9 ). It is guaranteed that the sum of n over all test cases does not exceed 5 cdot 10^5 . For each test case print a single integer -- the maximum sum of values you can get with an optimal parition. Test case 1 : one optimal partition is [1, 2] , [-3] . 1+2>0 so the value of [1, 2] is 2 . -3<0 , so the value of [-3] is -1 . 2+(-1)=1 . Test case 2 : the optimal partition is [0, -2, 3] , [-4] , and the sum of values is 3+(-1)=2 . '...

Tutorials

Codeforces Round #783 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
154210496 shengrang B April 20, 2022, 3:20 p.m. OK Clang++17 Diagnostics TESTS 101 2760 64204800 2100
154400954 rainboy B April 21, 2022, 4:08 p.m. OK GNU C11 TESTS 101 2043 12083200 2100
154207369 win10 B April 20, 2022, 2:37 p.m. OK GNU C++14 TESTS 101 202 26112000 2100
154090937 win10 B April 19, 2022, 3:02 p.m. OK GNU C++14 TESTS 100 202 26112000 2100
154258438 Y25t B April 21, 2022, 8:32 a.m. OK GNU C++14 TESTS 101 249 14028800 2100
154455249 panyanppyy B April 22, 2022, 2:52 a.m. OK GNU C++14 TESTS 101 264 14028800 2100
154103838 temp06 B April 19, 2022, 3:25 p.m. OK GNU C++14 TESTS 100 280 16076800 2100
154089467 -____ B April 19, 2022, 3 p.m. OK GNU C++14 TESTS 100 280 24473600 2100
154210674 shengrang B April 20, 2022, 3:23 p.m. OK GNU C++14 TESTS 101 295 18329600 2100
154084523 lzoi.win B April 19, 2022, 2:52 p.m. OK GNU C++14 TESTS 100 296 15974400 2100
154160766 HpSuda B April 20, 2022, 3:28 a.m. OK GNU C++14 TESTS 100 311 11980800 2100
154259715 BlackRain B April 21, 2022, 8:53 a.m. OK GNU C++14 TESTS 101 311 14028800 2100
154154443 et3_tsy3.0 B April 20, 2022, 12:57 a.m. OK GNU C++17 TESTS 100 187 22528000 2100
154494620 fallleaves01 B April 22, 2022, 12:10 p.m. OK GNU C++17 TESTS 101 234 16076800 2100
154168575 LRL52 B April 20, 2022, 5:49 a.m. OK GNU C++17 TESTS 100 249 24166400 2100
154110175 Kewth B April 19, 2022, 3:40 p.m. OK GNU C++17 TESTS 100 280 14028800 2100
154488808 nestling B April 22, 2022, 11:06 a.m. OK GNU C++17 TESTS 101 295 12083200 2100
154173792 CN_Amuzi B April 20, 2022, 7:07 a.m. OK GNU C++17 TESTS 101 296 18022400 2100
154210570 shengrang B April 20, 2022, 3:21 p.m. OK GNU C++17 TESTS 101 296 18329600 2100
154244331 heguangfu B April 21, 2022, 3:42 a.m. OK GNU C++17 TESTS 101 296 18329600 2100
154191945 TrungNotChung B April 20, 2022, 11:34 a.m. OK GNU C++17 TESTS 101 312 16076800 2100
154104741 SaoST B April 19, 2022, 3:27 p.m. OK GNU C++17 TESTS 100 326 18329600 2100
154164783 CE_WA_TLE B April 20, 2022, 4:43 a.m. OK GNU C++17 (64) TESTS 100 187 54374400 2100
154154016 tyin B April 20, 2022, 12:45 a.m. OK GNU C++17 (64) TESTS 100 202 16076800 2100
154401773 rainboy B April 21, 2022, 4:09 p.m. OK GNU C++17 (64) TESTS 101 233 11980800 2100
154093183 est_stella B April 19, 2022, 3:06 p.m. OK GNU C++17 (64) TESTS 100 233 19353600 2100
154138163 1zhuxiaobaicai B April 19, 2022, 6:43 p.m. OK GNU C++17 (64) TESTS 100 233 40140800 2100
154118952 Merlininice B April 19, 2022, 4:03 p.m. OK GNU C++17 (64) TESTS 100 234 20172800 2100
154210704 shengrang B April 20, 2022, 3:23 p.m. OK GNU C++17 (64) TESTS 101 249 19353600 2100
154210611 shengrang B April 20, 2022, 3:22 p.m. OK GNU C++17 (64) TESTS 101 249 19353600 2100
154174961 OTTFF B April 20, 2022, 7:25 a.m. OK GNU C++17 (64) TESTS 101 249 19353600 2100
154133732 Lucina B April 19, 2022, 6 p.m. OK GNU C++17 (64) TESTS 100 264 17305600 2100
154449733 gyh20 B April 22, 2022, 12:49 a.m. OK GNU C++20 (64) TESTS 101 155 47104000 2100
154693879 iShibly B April 23, 2022, 2:02 p.m. OK GNU C++20 (64) TESTS 101 156 14028800 2100
154164864 yzc2005 B April 20, 2022, 4:45 a.m. OK GNU C++20 (64) TESTS 100 186 14028800 2100
154167091 K4YAN B April 20, 2022, 5:23 a.m. OK GNU C++20 (64) TESTS 100 186 33382400 2100
154174839 Kawaii B April 20, 2022, 7:23 a.m. OK GNU C++20 (64) TESTS 101 186 53760000 2100
154246308 Bananana. B April 21, 2022, 4:34 a.m. OK GNU C++20 (64) TESTS 101 202 14028800 2100
154087033 AmShZ B April 19, 2022, 2:56 p.m. OK GNU C++20 (64) TESTS 100 202 23756800 2100
154153024 Tyyyyyy B April 20, 2022, 12:15 a.m. OK GNU C++20 (64) TESTS 100 202 24166400 2100
154655379 komeiji_koishi514 B April 23, 2022, 12:23 p.m. OK GNU C++20 (64) TESTS 101 202 25702400 2100
154106629 nuip B April 19, 2022, 3:32 p.m. OK GNU C++20 (64) TESTS 100 217 14028800 2100
154113858 YahiaSherif B April 19, 2022, 3:49 p.m. OK Java 11 TESTS 100 1263 34611200 2100
154881498 saga086 B April 24, 2022, 6:22 p.m. OK Java 11 TESTS 101 3587 141004800 2100
154881925 saga086 B April 24, 2022, 6:29 p.m. OK Java 11 TESTS 101 3587 141004800 2100
154117473 fetetriste B April 19, 2022, 3:59 p.m. OK Java 8 TESTS 100 529 38707200 2100
154098952 iakovlev.zakhar B April 19, 2022, 3:16 p.m. OK Java 8 TESTS 100 811 79872000 2100
154453522 yaoct B April 22, 2022, 2:22 a.m. OK Java 8 TESTS 101 1621 99840000 2100
154618691 tarptaeya B April 23, 2022, 5:23 a.m. OK Java 8 TESTS 101 1856 141926400 2100
154490352 tarakeshpolakolu B April 22, 2022, 11:26 a.m. OK Java 8 TESTS 101 3135 30208000 2100
154135545 Hakiobo B April 19, 2022, 6:14 p.m. OK Kotlin 1.4 TESTS 100 655 41676800 2100
154135188 Hakiobo B April 19, 2022, 6:11 p.m. OK Kotlin 1.4 TESTS 100 872 41676800 2100
154133039 Hakiobo B April 19, 2022, 5:56 p.m. OK Kotlin 1.4 TESTS 100 1045 28979200 2100
154137351 Tlatoani B April 19, 2022, 6:33 p.m. OK Kotlin 1.4 TESTS 100 2011 158617600 2100
154647522 liJD B April 23, 2022, 10:53 a.m. OK MS C++ 2017 TESTS 101 904 31129600 2100
154124353 machine_solution B April 19, 2022, 4:20 p.m. OK MS C++ 2017 TESTS 100 3650 100556800 2100
154092746 mban259 B April 19, 2022, 3:05 p.m. OK .NET Core C# TESTS 100 2589 118681600 2100
154173572 ruimina B April 20, 2022, 7:04 a.m. OK PyPy 3 TESTS 101 1419 82534400 2100
154179302 NecroSean38 B April 20, 2022, 8:31 a.m. OK PyPy 3 TESTS 101 1684 127488000 2100
154098017 taiga0629 B April 19, 2022, 3:14 p.m. OK PyPy 3 TESTS 100 2620 114278400 2100
154135884 hxu10 B April 19, 2022, 6:17 p.m. OK PyPy 3 TESTS 100 3852 201932800 2100
154157508 siganai B April 20, 2022, 2:20 a.m. OK PyPy 3-64 TESTS 100 920 95232000 2100
154157223 siganai B April 20, 2022, 2:13 a.m. OK PyPy 3-64 TESTS 100 951 95846400 2100
154269694 notTehlka B April 21, 2022, 11:14 a.m. OK PyPy 3-64 TESTS 101 1060 100659200 2100
154179332 NecroSean38 B April 20, 2022, 8:32 a.m. OK PyPy 3-64 TESTS 101 1294 85504000 2100
154087406 chinerist B April 19, 2022, 2:56 p.m. OK PyPy 3-64 TESTS 100 1590 93491200 2100
154104827 asdsasd B April 19, 2022, 3:28 p.m. OK PyPy 3-64 TESTS 100 1793 95436800 2100
154162633 nicku123 B April 20, 2022, 4:04 a.m. OK PyPy 3-64 TESTS 100 2854 112332800 2100
154165346 Spheniscine B April 20, 2022, 4:53 a.m. OK Rust 2021 TESTS 100 218 14336000 2100
154164841 Spheniscine B April 20, 2022, 4:44 a.m. OK Rust 2021 TESTS 100 233 14336000 2100
154164666 Spheniscine B April 20, 2022, 4:41 a.m. OK Rust 2021 TESTS 100 249 16384000 2100
154096741 qwerty787788 B April 19, 2022, 3:12 p.m. OK Rust 2021 TESTS 100 296 20070400 2100
154083939 sansen B April 19, 2022, 2:50 p.m. OK Rust 2021 TESTS 100 342 35942400 2100
154195712 LittleFall B April 20, 2022, 12:19 p.m. OK Rust 2021 TESTS 101 374 39014400 2100
154121333 Egor B April 19, 2022, 4:11 p.m. OK Rust 2021 TESTS 100 390 32051200 2100
154615949 satylogin B April 23, 2022, 4:39 a.m. OK Rust 2021 TESTS 101 779 52019200 2100
154183955 warks B April 20, 2022, 9:42 a.m. OK Rust 2021 TESTS 101 1637 85504000 2100

remove filters

Back to search problems