Codeforces Global Round 26

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
1984 Codeforces Global Round 26 FINISHED False 10800 19236263 June 9, 2024, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 17306 ) C1 Magnitude (Easy Version) PROGRAMMING dp greedy

B'The two versions of the problem are different. You may want to read both versions. You can make hacks only if both versions are solved. You are given an array a of length n . Start with c = 0 . Then, for each i from 1 to n (in increasing order) do exactly one of the following: Let the maximum final value of c after the procedure described above be equal to k . Find k . The first line contains a single integer t ( 1 <= q t <= q 10^4 ) -- the number of test cases. The first line of each test case contains a single integer n ( 2 <= q n <= q 2 cdot 10^5 ). The second line of each case contains n integers a_1 , a_2 , a_3 , ldots , a_n ( -10^9 <= q a_i <= q 10^9 ). The sum of n over all test cases does not exceed 3 cdot 10^5 . For each test case, output a single integer -- the value of k . In the first test case, if we set c to its absolute value every time we add to it, we end up with 6 . It can be shown that this is the maximum result. In the second test case, taking the absolute value will never change anything, so we can just sum the array without doing anything to get 24 . In the third test case, it is optimal to wait until the end to set c to its absolute value, resulting in an answer of 6 . '...

Tutorials

Codeforces Global Round 26 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
264972598 Aiden121pearce C1 June 9, 2024, 7:46 p.m. OK C# 10 TESTS 11 155 23040000
264958409 AhmedMaherAli C1 June 9, 2024, 5:21 p.m. OK C# 10 TESTS 11 156 26214400
265002412 Siddharth1411 C1 June 10, 2024, 5:08 a.m. OK C++14 (GCC 6-32) TESTS 11 108 0
264979269 Anurag2004 C1 June 9, 2024, 9:23 p.m. OK C++14 (GCC 6-32) TESTS 11 108 0
264986673 tazin. C1 June 10, 2024, 12:46 a.m. OK C++14 (GCC 6-32) TESTS 11 108 4198400
264993654 khmndr C1 June 10, 2024, 3:04 a.m. OK C++14 (GCC 6-32) TESTS 11 109 0
265002387 aksVolta C1 June 10, 2024, 5:07 a.m. OK C++14 (GCC 6-32) TESTS 11 109 0
264994725 rprithvi939 C1 June 10, 2024, 3:22 a.m. OK C++14 (GCC 6-32) TESTS 11 109 0
264973454 Aditya_agr C1 June 9, 2024, 7:56 p.m. OK C++14 (GCC 6-32) TESTS 11 109 0
265004461 iit2022213 C1 June 10, 2024, 5:31 a.m. OK C++14 (GCC 6-32) TESTS 11 109 1126400
264960431 vams1 C1 June 9, 2024, 5:28 p.m. OK C++14 (GCC 6-32) TESTS 11 109 1126400
265005438 Sirazul116 C1 June 10, 2024, 5:41 a.m. OK C++14 (GCC 6-32) TESTS 11 109 3276800
264992406 feixinbai C1 June 10, 2024, 2:45 a.m. OK C++17 (GCC 7-32) TESTS 11 93 0
264996143 Tomatos03 C1 June 10, 2024, 3:43 a.m. OK C++17 (GCC 7-32) TESTS 11 108 0
265006890 farcat576 C1 June 10, 2024, 5:56 a.m. OK C++17 (GCC 7-32) TESTS 11 108 0
265006608 tanmay_186 C1 June 10, 2024, 5:54 a.m. OK C++17 (GCC 7-32) TESTS 11 108 0
265000653 Niharika_Nihu C1 June 10, 2024, 4:47 a.m. OK C++17 (GCC 7-32) TESTS 11 108 0
264995597 909hehe C1 June 10, 2024, 3:35 a.m. OK C++17 (GCC 7-32) TESTS 11 108 0
264992855 jiang0805 C1 June 10, 2024, 2:53 a.m. OK C++17 (GCC 7-32) TESTS 11 108 0
264985047 Sonalika79 C1 June 9, 2024, 11:56 p.m. OK C++17 (GCC 7-32) TESTS 11 108 0
264983641 RomanYakunin C1 June 9, 2024, 11:10 p.m. OK C++17 (GCC 7-32) TESTS 11 108 0
264981065 Bravo13 C1 June 9, 2024, 9:59 p.m. OK C++17 (GCC 7-32) TESTS 11 108 0
264973862 Master32WSP C1 June 9, 2024, 8:01 p.m. OK C++20 (GCC 13-64) TESTS 11 61 307200
264992009 Youssef_2 C1 June 10, 2024, 2:38 a.m. OK C++20 (GCC 13-64) TESTS 11 77 0
264985368 Cras0432 C1 June 10, 2024, 12:07 a.m. OK C++20 (GCC 13-64) TESTS 11 77 819200
264979048 JaiShriMahakal C1 June 9, 2024, 9:19 p.m. OK C++20 (GCC 13-64) TESTS 11 78 0
264970968 Marckess C1 June 9, 2024, 7:25 p.m. OK C++20 (GCC 13-64) TESTS 11 78 1638400
264988416 CarlavierVN C1 June 10, 2024, 1:29 a.m. OK C++20 (GCC 13-64) TESTS 11 78 3276800
264969112 HoLaAmIgOs C1 June 9, 2024, 7:03 p.m. OK C++20 (GCC 13-64) TESTS 11 92 0
264958448 RE-TLE C1 June 9, 2024, 5:21 p.m. OK C++20 (GCC 13-64) TESTS 11 92 0
265002394 hnust_lizhongyu C1 June 10, 2024, 5:07 a.m. OK C++20 (GCC 13-64) TESTS 11 92 102400
264982640 Mohamed_Tarek7 C1 June 9, 2024, 10:39 p.m. OK C++20 (GCC 13-64) TESTS 11 92 102400
264988915 bluemegane C1 June 10, 2024, 1:40 a.m. OK C# 8 TESTS 11 171 20070400
264961341 Gassa C1 June 9, 2024, 5:31 p.m. OK D TESTS 11 171 10752000
264972486 1435730 C1 June 9, 2024, 7:44 p.m. OK GNU C11 TESTS 11 93 921600
264953613 MauWallah C1 June 9, 2024, 5:04 p.m. OK GNU C11 TESTS 11 109 819200
264978660 1936557 C1 June 9, 2024, 9:12 p.m. OK Haskell TESTS 11 124 5222400
264960829 AkshatSaxena_05 C1 June 9, 2024, 5:29 p.m. OK Java 21 TESTS 11 280 1945600
264993747 jai_bansal_007 C1 June 10, 2024, 3:06 a.m. OK Java 21 TESTS 11 281 819200
264999385 sujalsharma_13 C1 June 10, 2024, 4:30 a.m. OK Java 21 TESTS 11 312 1024000
265005682 frey4 C1 June 10, 2024, 5:45 a.m. OK Java 21 TESTS 11 327 614400
264961770 abusaeed2433 C1 June 9, 2024, 5:32 p.m. OK Java 21 TESTS 11 358 716800
264972641 himneesh9 C1 June 9, 2024, 7:46 p.m. OK Java 21 TESTS 11 358 921600
264970603 Anupam720 C1 June 9, 2024, 7:20 p.m. OK Java 21 TESTS 11 374 409600
264994528 ChrizzyB47 C1 June 10, 2024, 3:19 a.m. OK Java 21 TESTS 11 374 512000
264956710 sagar.kapoor.myproject C1 June 9, 2024, 5:15 p.m. OK Java 21 TESTS 11 374 6041600
265001496 vinay_panwar C1 June 10, 2024, 4:57 a.m. OK Java 21 TESTS 11 374 17612800
264975586 Hemant_malav C1 June 9, 2024, 8:25 p.m. OK Java 8 TESTS 11 218 23552000
264973717 vatsal_04 C1 June 9, 2024, 7:59 p.m. OK Java 8 TESTS 11 233 3686400
264960663 jesse45 C1 June 9, 2024, 5:29 p.m. OK Java 8 TESTS 11 265 7987200
264989231 alllexey C1 June 10, 2024, 1:47 a.m. OK Java 8 TESTS 11 280 16486400
264959487 suraj1771singh C1 June 9, 2024, 5:25 p.m. OK Java 8 TESTS 11 280 16691200
265006211 Shah_Sakshi C1 June 10, 2024, 5:49 a.m. OK Java 8 TESTS 11 280 80486400
264996732 desaizeeshan22 C1 June 10, 2024, 3:52 a.m. OK Java 8 TESTS 11 546 0
264977552 PlayDate C1 June 9, 2024, 8:54 p.m. OK Java 8 TESTS 11 577 0
264959182 save_trees C1 June 9, 2024, 5:24 p.m. OK Java 8 TESTS 11 577 0
264996190 desaizeeshan22 C1 June 10, 2024, 3:44 a.m. OK Java 8 TESTS 11 592 0
264992235 Samaritan02 C1 June 10, 2024, 2:42 a.m. OK PyPy 3 TESTS 11 452 15667200
264958562 logankeede C1 June 9, 2024, 5:22 p.m. OK PyPy 3 TESTS 11 515 15257600
264981087 raed.aroua C1 June 9, 2024, 10 p.m. OK PyPy 3 TESTS 11 577 17408000
264966978 sai-17 C1 June 9, 2024, 6:44 p.m. OK PyPy 3 TESTS 11 593 18022400
264968758 DeepDapy C1 June 9, 2024, 7 p.m. OK PyPy 3 TESTS 11 624 17510400
264959072 frocemetocode C1 June 9, 2024, 5:23 p.m. OK PyPy 3 TESTS 11 655 28262400
264957805 rishinandhav C1 June 9, 2024, 5:19 p.m. OK PyPy 3 TESTS 11 671 18124800
264957096 Tuan_Kiet_husc C1 June 9, 2024, 5:16 p.m. OK PyPy 3 TESTS 11 671 28774400
264960393 Code_24K C1 June 9, 2024, 5:28 p.m. OK PyPy 3 TESTS 11 843 14643200
264960055 itachi_157 C1 June 9, 2024, 5:27 p.m. OK PyPy 3 TESTS 11 859 41881600
264975806 hm32005 C1 June 9, 2024, 8:28 p.m. OK PyPy 3-64 TESTS 11 140 24576000
264971310 Slata C1 June 9, 2024, 7:29 p.m. OK PyPy 3-64 TESTS 11 140 27340800
264981441 Slata C1 June 9, 2024, 10:08 p.m. OK PyPy 3-64 TESTS 11 155 22630400
264983844 katonyonko C1 June 9, 2024, 11:18 p.m. OK PyPy 3-64 TESTS 11 155 25190400
265006562 Om_Singh_ C1 June 10, 2024, 5:53 a.m. OK PyPy 3-64 TESTS 11 155 27033600
264982344 Nullz C1 June 9, 2024, 10:32 p.m. OK PyPy 3-64 TESTS 11 155 27340800
264984139 Deecey01 C1 June 9, 2024, 11:27 p.m. OK PyPy 3-64 TESTS 11 155 29184000
264992228 code520_ C1 June 10, 2024, 2:42 a.m. OK PyPy 3-64 TESTS 11 156 23552000
264971288 kibr C1 June 9, 2024, 7:29 p.m. OK PyPy 3-64 TESTS 11 156 24883200
264991606 code520_ C1 June 10, 2024, 2:32 a.m. OK PyPy 3-64 TESTS 11 156 26931200
265006307 Om_Singh_ C1 June 10, 2024, 5:50 a.m. OK Python 3 TESTS 11 217 25088000
265006411 Om_Singh_ C1 June 10, 2024, 5:52 a.m. OK Python 3 TESTS 11 218 24371200
264953104 oibela C1 June 9, 2024, 5:02 p.m. OK Python 3 TESTS 11 233 24678400
264966885 ArafHasan C1 June 9, 2024, 6:44 p.m. OK Python 3 TESTS 11 233 25907200
264980406 eugalt C1 June 9, 2024, 9:45 p.m. OK Python 3 TESTS 11 249 18739200
265003812 ___a_s_1_2___ C1 June 10, 2024, 5:24 a.m. OK Python 3 TESTS 11 249 25907200
265004646 Rohidul C1 June 10, 2024, 5:33 a.m. OK Python 3 TESTS 11 250 25907200
264981776 Smartzz C1 June 9, 2024, 10:17 p.m. OK Python 3 TESTS 11 265 24985600
264957261 shashanksp851 C1 June 9, 2024, 5:17 p.m. OK Python 3 TESTS 11 265 24985600
264956317 Arnav-007 C1 June 9, 2024, 5:14 p.m. OK Python 3 TESTS 11 280 30720000
264956842 Book_Man C1 June 9, 2024, 5:16 p.m. OK Rust 2021 TESTS 11 140 13516800

remove filters

Back to search problems