Codeforces Round 855 (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
1800 Codeforces Round 855 (Div. 3) FINISHED False 8100 59498663 March 2, 2023, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 24419 ) C1 Powering the Hero (easy version) PROGRAMMING data structures greedy

B"This is an easy version of the problem. It differs from the hard one only by constraints on n and t . There is a deck of n cards, each of which is characterized by its power. There are two types of cards: You can do the following with the deck: Your task is to use such actions to gather an army with the maximum possible total power. The first line of input data contains single integer t ( 1 <= t <= 1000 ) -- the number of test cases in the test. The first line of each test case contains one integer n ( 1 <= n <= 5000 ) -- the number of cards in the deck. The second line of each test case contains n integers s_1, s_2, ... , s_n ( 0 <= s_i <= 10^9 ) -- card powers in top-down order. It is guaranteed that the sum of n over all test cases does not exceed 5000 . Output t numbers, each of which is the answer to the corresponding test case -- the maximum possible total power of the army that can be achieved. In the first sample, you can take bonuses 1 and 2 . Both hero cards will receive 3 power. If you take all the bonuses, one of them will remain unused. In the second sample, the hero's card on top of the deck cannot be powered up, and the rest can be powered up with 2 and 3 bonuses and get 6 total power. In the fourth sample, you can take bonuses 1 , 2 , 3 , 5 and skip the bonus 6 , then the hero 4 will be enhanced with a bonus 3 by 5 , and the hero 7 with a bonus 5 by 4 . 4+5=9 . "...

Tutorials

Codeforces Round 855 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
195730930 absa1am C1 March 2, 2023, 8:25 p.m. OK C# 10 TESTS 11 46 512000
195745389 mban259 C1 March 3, 2023, 1:22 a.m. OK C# 10 TESTS 12 46 614400
195748542 bluemegane C1 March 3, 2023, 2:34 a.m. OK C# 8 TESTS 12 92 1228800
195717810 sansh2356 C1 March 2, 2023, 6:21 p.m. OK Clang++20 Diagnostics TESTS 10 327 12595200
195747708 Awesome3.14 C1 March 3, 2023, 2:15 a.m. OK D TESTS 12 30 4403200
195711426 Maksan C1 March 2, 2023, 5:35 p.m. OK GNU C11 TESTS 10 15 0
195752126 paramparsewar C1 March 3, 2023, 3:37 a.m. OK GNU C11 TESTS 12 15 0
195741887 1435730 C1 March 3, 2023, midnight OK GNU C11 TESTS 11 15 819200
195709356 AkiIto C1 March 2, 2023, 5:22 p.m. OK GNU C11 TESTS 10 31 0
195760094 yurui111 C1 March 3, 2023, 5:33 a.m. OK GNU C11 TESTS 12 31 0
195719368 jarifulovi C1 March 2, 2023, 6:33 p.m. OK GNU C11 TESTS 10 31 204800
195730529 jerseyguy C1 March 2, 2023, 8:20 p.m. OK GNU C++14 TESTS 11 0 102400
195753794 lost1903 C1 March 3, 2023, 4:08 a.m. OK GNU C++14 TESTS 12 0 102400
195720014 Lunularia C1 March 2, 2023, 6:38 p.m. OK GNU C++14 TESTS 10 0 204800
195752955 qwjoj C1 March 3, 2023, 3:52 a.m. OK GNU C++14 TESTS 12 15 0
195720848 Ajlan_Alif C1 March 2, 2023, 6:44 p.m. OK GNU C++14 TESTS 10 15 0
195761641 kunalbabbar2843 C1 March 3, 2023, 5:50 a.m. OK GNU C++14 TESTS 12 15 102400
195761384 chy12321 C1 March 3, 2023, 5:47 a.m. OK GNU C++14 TESTS 12 15 102400
195756673 Mr_White_ C1 March 3, 2023, 4:51 a.m. OK GNU C++14 TESTS 12 15 102400
195754718 Xiimoon C1 March 3, 2023, 4:23 a.m. OK GNU C++14 TESTS 12 15 102400
195761710 Wy_g C1 March 3, 2023, 5:51 a.m. OK GNU C++14 TESTS 12 15 102400
195718224 Yuan_Li C1 March 2, 2023, 6:24 p.m. OK GNU C++17 TESTS 10 0 102400
195712049 manik_2021336 C1 March 2, 2023, 5:39 p.m. OK GNU C++17 TESTS 10 0 102400
195711564 sarthakj314 C1 March 2, 2023, 5:36 p.m. OK GNU C++17 TESTS 10 0 102400
195742128 Abdulkader_Haffar C1 March 3, 2023, 12:07 a.m. OK GNU C++17 TESTS 11 0 102400
195757187 Traverser_25 C1 March 3, 2023, 4:57 a.m. OK GNU C++17 TESTS 12 0 102400
195718003 Yousef_Sameh C1 March 2, 2023, 6:22 p.m. OK GNU C++17 TESTS 10 0 102400
195761643 manishjha91 C1 March 3, 2023, 5:50 a.m. OK GNU C++17 TESTS 12 0 102400
195719472 sandry24 C1 March 2, 2023, 6:33 p.m. OK GNU C++17 TESTS 10 0 102400
195720916 20arnav C1 March 2, 2023, 6:45 p.m. OK GNU C++17 TESTS 10 0 102400
195756810 Lakshay.Arora C1 March 3, 2023, 4:53 a.m. OK GNU C++17 TESTS 12 0 204800
195737448 nitigyajoshi0901 C1 March 2, 2023, 10:14 p.m. OK GNU C++17 (64) TESTS 11 0 0
195715158 Sakib62 C1 March 2, 2023, 6:01 p.m. OK GNU C++17 (64) TESTS 10 0 0
195749874 hsekharsahoo C1 March 3, 2023, 2:58 a.m. OK GNU C++17 (64) TESTS 12 0 102400
195743403 qianchen06 C1 March 3, 2023, 12:37 a.m. OK GNU C++17 (64) TESTS 12 0 102400
195716778 mnndq C1 March 2, 2023, 6:13 p.m. OK GNU C++17 (64) TESTS 10 0 102400
195716055 Kaushal. C1 March 2, 2023, 6:08 p.m. OK GNU C++17 (64) TESTS 10 0 102400
195712203 ravicirame C1 March 2, 2023, 5:40 p.m. OK GNU C++17 (64) TESTS 10 0 102400
195762735 juliany2 C1 March 3, 2023, 6:02 a.m. OK GNU C++17 (64) TESTS 12 0 204800
195745734 drdilyor C1 March 3, 2023, 1:30 a.m. OK GNU C++17 (64) TESTS 12 0 204800
195724703 Wevton C1 March 2, 2023, 7:19 p.m. OK GNU C++17 (64) TESTS 10 0 2560000
195714398 Derinkuyu C1 March 2, 2023, 5:55 p.m. OK GNU C++20 (64) TESTS 10 0 0
195709905 fxfxxxfxx C1 March 2, 2023, 5:25 p.m. OK GNU C++20 (64) TESTS 10 0 0
195709400 _SilenzioBruno_ C1 March 2, 2023, 5:22 p.m. OK GNU C++20 (64) TESTS 10 0 0
195741164 RizkWar C1 March 2, 2023, 11:40 p.m. OK GNU C++20 (64) TESTS 11 0 0
195743933 Ubgreat C1 March 3, 2023, 12:50 a.m. OK GNU C++20 (64) TESTS 12 0 0
195744134 liuaaa C1 March 3, 2023, 12:54 a.m. OK GNU C++20 (64) TESTS 12 0 0
195736825 OkClinty C1 March 2, 2023, 10:01 p.m. OK GNU C++20 (64) TESTS 11 0 0
195733307 HashingMan C1 March 2, 2023, 8:57 p.m. OK GNU C++20 (64) TESTS 11 0 0
195726566 kolomig0r C1 March 2, 2023, 7:37 p.m. OK GNU C++20 (64) TESTS 11 0 0
195762219 Sanjoy__Kumar C1 March 3, 2023, 5:57 a.m. OK GNU C++20 (64) TESTS 12 0 102400
195744596 lordvidex C1 March 3, 2023, 1:05 a.m. OK Go TESTS 12 31 409600
195758051 __Serendipity C1 March 3, 2023, 5:07 a.m. OK Java 11 TESTS 12 171 0
195731110 Hinnawi24 C1 March 2, 2023, 8:27 p.m. OK Java 11 TESTS 11 171 0
195725401 dzhi C1 March 2, 2023, 7:26 p.m. OK Java 11 TESTS 10 187 0
195729419 pakkapapad C1 March 2, 2023, 8:07 p.m. OK Java 11 TESTS 11 187 0
195724736 Pranav3926 C1 March 2, 2023, 7:19 p.m. OK Java 11 TESTS 10 202 0
195730442 Srishti2002 C1 March 2, 2023, 8:19 p.m. OK Java 11 TESTS 11 217 0
195731212 gurkaran0209 C1 March 2, 2023, 8:29 p.m. OK Java 11 TESTS 11 233 0
195725337 Pranav3926 C1 March 2, 2023, 7:25 p.m. OK Java 11 TESTS 10 233 0
195718509 ilasiawo C1 March 2, 2023, 6:26 p.m. OK Java 11 TESTS 10 233 0
195733371 ahmedtawfik C1 March 2, 2023, 8:58 p.m. OK Java 17 TESTS 11 171 409600
195720280 Black-Heart C1 March 2, 2023, 6:40 p.m. OK Java 17 TESTS 10 186 409600
195747592 Mustela_Erminea C1 March 3, 2023, 2:13 a.m. OK Java 17 TESTS 12 202 512000
195762079 gaurav_22 C1 March 3, 2023, 5:56 a.m. OK Java 17 TESTS 12 202 716800
195712281 massvinod C1 March 2, 2023, 5:41 p.m. OK Java 17 TESTS 10 233 512000
195750111 Abhilash81 C1 March 3, 2023, 3:01 a.m. OK Java 17 TESTS 12 233 716800
195755574 wintersoldier2004 C1 March 3, 2023, 4:36 a.m. OK Java 17 TESTS 12 233 1126400
195725171 Adar8604 C1 March 2, 2023, 7:23 p.m. OK Java 17 TESTS 10 248 1024000
195723930 sandeep_1507 C1 March 2, 2023, 7:12 p.m. OK Java 17 TESTS 10 249 819200
195723115 notreallysure C1 March 2, 2023, 7:04 p.m. OK Java 17 TESTS 10 249 819200
195718561 CodeNoob124 C1 March 2, 2023, 6:26 p.m. OK Java 8 TESTS 10 93 0
195747877 cyclingle C1 March 3, 2023, 2:20 a.m. OK Java 8 TESTS 12 109 0
195710764 crudeCode C1 March 2, 2023, 5:31 p.m. OK Java 8 TESTS 10 109 0
195723787 Sylvester_ C1 March 2, 2023, 7:10 p.m. OK Java 8 TESTS 10 124 0
195722147 SooNoob C1 March 2, 2023, 6:56 p.m. OK Java 8 TESTS 10 124 0
195710891 khan1121 C1 March 2, 2023, 5:31 p.m. OK Java 8 TESTS 10 124 0
195752053 Priyanka1551 C1 March 3, 2023, 3:36 a.m. OK Java 8 TESTS 12 139 0
195755709 amit_roy C1 March 3, 2023, 4:38 a.m. OK Java 8 TESTS 12 140 0
195711557 toufique_husein C1 March 2, 2023, 5:36 p.m. OK Java 8 TESTS 10 140 0
195762375 Eunoiay C1 March 3, 2023, 5:59 a.m. OK Java 8 TESTS 12 155 0
195737125 Kay0 C1 March 2, 2023, 10:07 p.m. OK Kotlin 1.6 TESTS 11 202 0
195758453 Yuki1536 C1 March 3, 2023, 5:12 a.m. OK MS C++ 2017 TESTS 12 15 102400
195719874 Galina_Basalova C1 March 2, 2023, 6:37 p.m. OK MS C++ 2017 TESTS 10 31 102400
195732417 ankitesh C1 March 2, 2023, 8:45 p.m. OK PyPy 3 TESTS 11 171 6246400
195752173 IWantToBeNutellaSomeday C1 March 3, 2023, 3:38 a.m. OK PyPy 3 TESTS 12 186 5632000
195751659 AS23 C1 March 3, 2023, 3:29 a.m. OK PyPy 3 TESTS 12 202 5836800
195748057 park6 C1 March 3, 2023, 2:23 a.m. OK PyPy 3 TESTS 12 217 141926400
195749594 InariInDream C1 March 3, 2023, 2:53 a.m. OK PyPy 3-64 TESTS 12 78 4710400
195733715 FlakeLCR C1 March 2, 2023, 9:03 p.m. OK PyPy 3-64 TESTS 11 78 5120000
195754090 Youarenotgood C1 March 3, 2023, 4:13 a.m. OK PyPy 3-64 TESTS 12 93 4198400
195735810 voicon C1 March 2, 2023, 9:40 p.m. OK PyPy 3-64 TESTS 11 93 4403200
195739740 crapcode C1 March 2, 2023, 11:04 p.m. OK PyPy 3-64 TESTS 11 93 4505600
195735800 gardengnome C1 March 2, 2023, 9:40 p.m. OK PyPy 3-64 TESTS 11 93 4505600
195719106 Pooja96 C1 March 2, 2023, 6:30 p.m. OK PyPy 3-64 TESTS 10 93 4608000
195729251 radoan.sharkar.richi C1 March 2, 2023, 8:05 p.m. OK PyPy 3-64 TESTS 11 93 4812800
195746818 summertony717 C1 March 3, 2023, 1:55 a.m. OK PyPy 3-64 TESTS 12 93 6144000
195752315 The_MazeRunner C1 March 3, 2023, 3:40 a.m. OK PyPy 3-64 TESTS 12 109 7270400
195736757 sdarkii C1 March 2, 2023, 10 p.m. OK Python 3 TESTS 11 46 0
195723665 MasterKali C1 March 2, 2023, 7:09 p.m. OK Python 3 TESTS 10 46 0
195720991 Rockey C1 March 2, 2023, 6:46 p.m. OK Python 3 TESTS 10 46 0
195709437 Seburath C1 March 2, 2023, 5:22 p.m. OK Python 3 TESTS 10 46 0
195755315 nidhi_singh_16 C1 March 3, 2023, 4:32 a.m. OK Python 3 TESTS 12 61 0
195719557 Quick-One C1 March 2, 2023, 6:34 p.m. OK Python 3 TESTS 10 61 0
195710044 Seburath C1 March 2, 2023, 5:26 p.m. OK Python 3 TESTS 10 61 0
195709735 Seburath C1 March 2, 2023, 5:24 p.m. OK Python 3 TESTS 10 61 0
195709303 Seburath C1 March 2, 2023, 5:21 p.m. OK Python 3 TESTS 10 62 0
195758976 vipul_mehra C1 March 3, 2023, 5:19 a.m. OK Python 3 TESTS 12 62 307200
195718448 kenenisa C1 March 2, 2023, 6:25 p.m. OK Rust 2021 TESTS 10 15 204800
195718293 kenenisa C1 March 2, 2023, 6:24 p.m. OK Rust 2021 TESTS 10 15 307200

remove filters

Back to search problems