Codeforces Round 814 (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
1718 Codeforces Round 814 (Div. 1) FINISHED False 7200 76605863 Aug. 16, 2022, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 5925 ) A1 Burenka and Traditions (easy version) PROGRAMMING dp greedy math

B'This is the easy version of this problem. The difference between easy and hard versions is only the constraints on a_i and on n . You can make hacks only if both versions of the problem are solved. Burenka is the crown princess of Buryatia, and soon she will become the n -th queen of the country. There is an ancient tradition in Buryatia -- before the coronation, the ruler must show their strength to the inhabitants. To determine the strength of the n -th ruler, the inhabitants of the country give them an array of a of exactly n numbers, after which the ruler must turn all the elements of the array into zeros in the shortest time. The ruler can do the following two-step operation any number of times: Help Burenka calculate how much time she will need. The first line contains a single integer t ( 1 <= t <= 500 ) -- 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 <= 5000 ) -- the size of the array. The second line of each test case contains n integers a_1, a_2, ldots, a_n ( 0 <= a_i <= 5000 ) -- elements of the array. It is guaranteed that the sum of n in all tests does not exceed 5000 . For each test case, output a single number -- the minimum time that Burenka will need. In the first test case, Burenka can choose segment l = 1 , r = 4 , and x=5 . so it will fill the array with zeros in 2 seconds. In the second test case, Burenka first selects segment l = 1 , r = 2 , and x = 1 , after which a = [0, 2, 2] , and then the segment l = 2 , r = 3 , and x=2 , which fills the array with zeros. In total, Burenka will spend 2 seconds. '...

Tutorials

Codeforces Round #814 (Div. 1, Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
168550350 mban259 A1 Aug. 16, 2022, 3:13 p.m. OK C# 10 TESTS 25 93 614400
168533799 Gassa A1 Aug. 16, 2022, 2:53 p.m. OK D TESTS 25 30 4198400
168634953 Leasier A1 Aug. 17, 2022, 12:43 a.m. OK GNU C11 TESTS 25 15 0
168546637 Leasier A1 Aug. 16, 2022, 3:08 p.m. OK GNU C11 TESTS 25 30 0
168556688 chro4896 A1 Aug. 16, 2022, 3:21 p.m. OK GNU C11 TESTS 25 30 2048000
168549867 ykl A1 Aug. 16, 2022, 3:12 p.m. OK GNU C++14 TESTS 25 15 102400
168575707 moonrise__ A1 Aug. 16, 2022, 3:50 p.m. OK GNU C++14 TESTS 25 15 102400
168633168 wabca A1 Aug. 16, 2022, 11:56 p.m. OK GNU C++14 TESTS 25 15 204800
168616458 bhai_kya_kar_raha_hai_tu A1 Aug. 16, 2022, 6:55 p.m. OK GNU C++14 TESTS 25 15 204800
168588594 Syf2020 A1 Aug. 16, 2022, 4:13 p.m. OK GNU C++14 TESTS 25 15 204800
168543743 zhiyangfan A1 Aug. 16, 2022, 3:04 p.m. OK GNU C++14 TESTS 25 15 307200
168531620 _Guoyh_ A1 Aug. 16, 2022, 2:52 p.m. OK GNU C++14 TESTS 25 15 307200
168634066 basic_string A1 Aug. 17, 2022, 12:21 a.m. OK GNU C++14 TESTS 25 15 512000
168558130 xuanxuan001 A1 Aug. 16, 2022, 3:23 p.m. OK GNU C++14 TESTS 25 15 512000
168534825 quanshr A1 Aug. 16, 2022, 2:54 p.m. OK GNU C++14 TESTS 25 15 512000
168525389 mjhmjh1104 A1 Aug. 16, 2022, 2:46 p.m. OK GNU C++17 TESTS 25 15 0
168553775 alllife A1 Aug. 16, 2022, 3:17 p.m. OK GNU C++17 TESTS 25 15 0
168550267 Redcrown A1 Aug. 16, 2022, 3:12 p.m. OK GNU C++17 TESTS 25 15 0
168539409 lmqzzz A1 Aug. 16, 2022, 2:59 p.m. OK GNU C++17 TESTS 25 15 0
168609823 Giga_Cronos A1 Aug. 16, 2022, 6:01 p.m. OK GNU C++17 TESTS 25 15 102400
168570206 ImHubery A1 Aug. 16, 2022, 3:41 p.m. OK GNU C++17 TESTS 25 15 102400
168624378 mohammadhs A1 Aug. 16, 2022, 8:35 p.m. OK GNU C++17 TESTS 25 15 204800
168644617 julianferres A1 Aug. 17, 2022, 3:28 a.m. OK GNU C++17 TESTS 25 15 204800
168642123 juju527 A1 Aug. 17, 2022, 2:50 a.m. OK GNU C++17 TESTS 25 15 204800
168651880 AlexanderL A1 Aug. 17, 2022, 5:18 a.m. OK GNU C++17 TESTS 26 15 204800
168584873 KyuusyouTheSavior A1 Aug. 16, 2022, 4:06 p.m. OK GNU C++17 (64) TESTS 25 0 204800
168611828 propane A1 Aug. 16, 2022, 6:15 p.m. OK GNU C++17 (64) TESTS 25 15 0
168545075 AwIDoK A1 Aug. 16, 2022, 3:06 p.m. OK GNU C++17 (64) TESTS 25 15 0
168543073 panyaoyu1999 A1 Aug. 16, 2022, 3:03 p.m. OK GNU C++17 (64) TESTS 25 15 0
168541443 bandiaoz A1 Aug. 16, 2022, 3:02 p.m. OK GNU C++17 (64) TESTS 25 15 0
168534637 Kude A1 Aug. 16, 2022, 2:54 p.m. OK GNU C++17 (64) TESTS 25 15 0
168534489 huangxiaohua A1 Aug. 16, 2022, 2:54 p.m. OK GNU C++17 (64) TESTS 25 15 0
168642187 mQfZ A1 Aug. 17, 2022, 2:51 a.m. OK GNU C++17 (64) TESTS 25 15 0
168642562 xhgua A1 Aug. 17, 2022, 2:57 a.m. OK GNU C++17 (64) TESTS 25 15 0
168626073 Aleks5d A1 Aug. 16, 2022, 9:02 p.m. OK GNU C++17 (64) TESTS 25 15 0
168524196 Endagorion A1 Aug. 16, 2022, 2:45 p.m. OK GNU C++20 (64) TESTS 25 0 204800
168540469 dreamoon_love_AA A1 Aug. 16, 2022, 3 p.m. OK GNU C++20 (64) TESTS 25 0 8601600
168616504 SaiAryan A1 Aug. 16, 2022, 6:55 p.m. OK GNU C++20 (64) TESTS 25 15 0
168643420 oldyan A1 Aug. 17, 2022, 3:10 a.m. OK GNU C++20 (64) TESTS 25 15 0
168617633 zidder A1 Aug. 16, 2022, 7:08 p.m. OK GNU C++20 (64) TESTS 25 15 0
168590850 flashmt A1 Aug. 16, 2022, 4:17 p.m. OK GNU C++20 (64) TESTS 25 15 0
168582145 rushitote A1 Aug. 16, 2022, 4:01 p.m. OK GNU C++20 (64) TESTS 25 15 0
168577999 A_G A1 Aug. 16, 2022, 3:54 p.m. OK GNU C++20 (64) TESTS 25 15 0
168575487 qualdoom A1 Aug. 16, 2022, 3:50 p.m. OK GNU C++20 (64) TESTS 25 15 0
168571240 Evirir A1 Aug. 16, 2022, 3:43 p.m. OK GNU C++20 (64) TESTS 25 15 0
168533802 knightL A1 Aug. 16, 2022, 2:53 p.m. OK Java 11 TESTS 25 187 0
168650098 brstplayer A1 Aug. 17, 2022, 4:53 a.m. OK Java 11 TESTS 25 218 0
168552137 jack.t.y.wu A1 Aug. 16, 2022, 3:15 p.m. OK Java 17 TESTS 25 202 512000
168587945 DarLam A1 Aug. 16, 2022, 4:12 p.m. OK Java 8 TESTS 25 109 0
168538226 z_zhaojun A1 Aug. 16, 2022, 2:58 p.m. OK Java 8 TESTS 25 139 0
168529435 MagentaCobra A1 Aug. 16, 2022, 2:50 p.m. OK Java 8 TESTS 25 249 0
168554368 Hakiobo A1 Aug. 16, 2022, 3:18 p.m. OK Kotlin 1.4 TESTS 25 171 1024000
168535912 Tlatoani A1 Aug. 16, 2022, 2:55 p.m. OK Kotlin 1.6 TESTS 25 233 0
168526514 arvindf232 A1 Aug. 16, 2022, 2:47 p.m. OK Kotlin 1.6 TESTS 25 233 614400
168527616 KroosTheKeenGlint A1 Aug. 16, 2022, 2:48 p.m. OK MS C++ 2017 TESTS 25 15 0
168542748 LXl491214 A1 Aug. 16, 2022, 3:03 p.m. OK MS C++ 2017 TESTS 25 15 1024000
168542338 misorin A1 Aug. 16, 2022, 3:03 p.m. OK PyPy 3 TESTS 25 311 5836800
168542734 duck702702 A1 Aug. 16, 2022, 3:03 p.m. OK PyPy 3-64 TESTS 25 77 2048000
168535644 asdsasd A1 Aug. 16, 2022, 2:55 p.m. OK PyPy 3-64 TESTS 25 77 2867200
168535371 shotoyoo A1 Aug. 16, 2022, 2:55 p.m. OK PyPy 3-64 TESTS 25 93 3584000
168580241 chinerist A1 Aug. 16, 2022, 3:58 p.m. OK PyPy 3-64 TESTS 25 93 5427200
168528190 conqueror_of_tourist A1 Aug. 16, 2022, 2:49 p.m. OK PyPy 3-64 TESTS 25 109 3072000
168575006 shobonvip A1 Aug. 16, 2022, 3:49 p.m. OK PyPy 3-64 TESTS 25 124 5222400
168577315 siganai A1 Aug. 16, 2022, 3:53 p.m. OK PyPy 3-64 TESTS 25 124 5324800
168538166 xxh1999 A1 Aug. 16, 2022, 2:58 p.m. OK PyPy 3-64 TESTS 25 124 6451200
168545410 Jimanbanashi A1 Aug. 16, 2022, 3:06 p.m. OK Python 2 TESTS 25 46 409600
168598039 savsmail A1 Aug. 16, 2022, 4:30 p.m. OK Python 3 TESTS 25 61 409600
168533806 qwerty787788 A1 Aug. 16, 2022, 2:53 p.m. OK Rust 2021 TESTS 25 15 102400
168530422 Niklassanden A1 Aug. 16, 2022, 2:51 p.m. OK Rust 2021 TESTS 25 15 102400
168525727 Egor A1 Aug. 16, 2022, 2:46 p.m. OK Rust 2021 TESTS 25 15 512000
168535062 sansen A1 Aug. 16, 2022, 2:55 p.m. OK Rust 2021 TESTS 25 202 307200
168543817 LittleCyan A1 Aug. 16, 2022, 3:04 p.m. OK Rust 2021 TESTS 25 545 165376000

remove filters

Back to search problems