Educational Codeforces Round 164 (Rated for Div. 2)

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
1954 Educational Codeforces Round 164 (Rated for Div. 2) FINISHED False 7200 24247463 April 12, 2024, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 2418 ) E Chain Reaction PROGRAMMING data structures ds greedy implementation math number theory

B'There are n monsters standing in a row. The i -th monster has a_i health points. Every second, you can choose one alive monster and launch a chain lightning at it. The lightning deals k damage to it, and also spreads to the left (towards decreasing i ) and to the right (towards increasing i ) to alive monsters, dealing k damage to each. When the lightning reaches a dead monster or the beginning/end of the row, it stops. A monster is considered alive if its health points are strictly greater than 0 . For example, consider the following scenario: there are three monsters with health equal to [5, 2, 7] , and k = 3 . You can kill them all in 4 seconds: For each k from 1 to max(a_1, a_2, ... , a_n) , calculate the minimum number of seconds it takes to kill all the monsters. The first line contains a single integer n ( 1 <= n <= 10^5 ) -- the number of monsters. The second line contains n integers a_1, a_2, ... , a_n ( 1 <= a_i <= 10^5 ) -- the health points of the i -th monster. For each k from 1 to max(a_1, a_2, ... , a_n) , output the minimum number of seconds it takes to kill all the monsters. '...

Tutorials

Educational Codeforces Round 164 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
256388570 chennie E April 12, 2024, 11:07 p.m. OK C++14 (GCC 6-32) TESTS 27 92 102400
256398837 yeminghan E April 13, 2024, 3:08 a.m. OK C++14 (GCC 6-32) TESTS 27 93 921600
256393077 ErikLiu E April 13, 2024, 1:08 a.m. OK C++14 (GCC 6-32) TESTS 27 93 1228800
256373783 Gold_Dragon E April 12, 2024, 7:19 p.m. OK C++14 (GCC 6-32) TESTS 27 93 1228800
256349338 antguz E April 12, 2024, 4:29 p.m. OK C++14 (GCC 6-32) TESTS 27 93 1228800
256363218 shironeko1702 E April 12, 2024, 5:42 p.m. OK C++14 (GCC 6-32) TESTS 27 108 2969600
256388778 Sin_Watt E April 12, 2024, 11:12 p.m. OK C++14 (GCC 6-32) TESTS 27 109 1638400
256403795 nicksm E April 13, 2024, 4:27 a.m. OK C++14 (GCC 6-32) TESTS 27 139 1536000
256350290 aryanc403 E April 12, 2024, 4:31 p.m. OK C++14 (GCC 6-32) TESTS 27 140 2764800
256366866 megatron10 E April 12, 2024, 6:14 p.m. OK C++14 (GCC 6-32) TESTS 27 155 2150400
256410589 pitP E April 13, 2024, 5:54 a.m. OK C++17 (GCC 7-32) TESTS 27 77 102400
256400313 nhphuc E April 13, 2024, 3:32 a.m. OK C++17 (GCC 7-32) TESTS 27 78 0
256403949 Kareem_Elgoker E April 13, 2024, 4:29 a.m. OK C++17 (GCC 7-32) TESTS 27 78 102400
256403888 Kareem_Elgoker E April 13, 2024, 4:28 a.m. OK C++17 (GCC 7-32) TESTS 27 78 102400
256393517 Ma7moud_Tal3at270 E April 13, 2024, 1:18 a.m. OK C++17 (GCC 7-32) TESTS 27 78 102400
256381255 phoenix6017 E April 12, 2024, 8:50 p.m. OK C++17 (GCC 7-32) TESTS 27 78 102400
256355603 LOL_I_AM_SERZH E April 12, 2024, 4:49 p.m. OK C++17 (GCC 7-32) TESTS 27 78 102400
256399510 sjw712 E April 13, 2024, 3:19 a.m. OK C++17 (GCC 7-32) TESTS 27 92 0
256362023 Aphrodite3107 E April 12, 2024, 5:32 p.m. OK C++17 (GCC 7-32) TESTS 27 92 819200
256405629 Atma_ E April 13, 2024, 4:55 a.m. OK C++17 (GCC 7-32) TESTS 27 93 102400
256366538 GusFring E April 12, 2024, 6:10 p.m. OK C++20 (GCC 13-64) TESTS 27 62 0
256405377 wmh34 E April 13, 2024, 4:51 a.m. OK C++20 (GCC 13-64) TESTS 27 62 102400
256399746 A_G E April 13, 2024, 3:23 a.m. OK C++20 (GCC 13-64) TESTS 27 62 102400
256366509 aryanc403 E April 12, 2024, 6:10 p.m. OK C++20 (GCC 13-64) TESTS 27 62 102400
256366309 xuanbac05 E April 12, 2024, 6:09 p.m. OK C++20 (GCC 13-64) TESTS 27 62 4096000
256396795 Aicu E April 13, 2024, 2:30 a.m. OK C++20 (GCC 13-64) TESTS 27 77 0
256377302 aditya1977 E April 12, 2024, 7:59 p.m. OK C++20 (GCC 13-64) TESTS 27 77 0
256363322 shleep E April 12, 2024, 5:43 p.m. OK C++20 (GCC 13-64) TESTS 27 77 0
256398914 Aicu E April 13, 2024, 3:09 a.m. OK C++20 (GCC 13-64) TESTS 27 77 102400
256396467 enslaved E April 13, 2024, 2:24 a.m. OK C++20 (GCC 13-64) TESTS 27 77 102400
256354453 Quasicoherent E April 12, 2024, 4:44 p.m. OK Java 21 TESTS 27 327 1331200
256382262 mkah123 E April 12, 2024, 9:04 p.m. OK Java 21 TESTS 27 483 1126400
256355129 profchi E April 12, 2024, 4:47 p.m. OK Java 21 TESTS 27 655 17510400
256377914 pepelats E April 12, 2024, 8:05 p.m. OK Java 21 TESTS 27 1702 1331200
256355751 Yousef_Badr E April 12, 2024, 4:50 p.m. OK Java 8 TESTS 27 265 8704000
256356205 Yousef_Badr E April 12, 2024, 4:53 p.m. OK Java 8 TESTS 27 281 8704000
256405610 duyipeng E April 13, 2024, 4:54 a.m. OK Java 8 TESTS 27 1656 0
256390524 Yk4r2 E April 12, 2024, 11:58 p.m. OK PyPy 3-64 TESTS 27 156 14950400
256370206 strashila E April 12, 2024, 6:43 p.m. OK PyPy 3-64 TESTS 27 156 15564800
256362847 misorin E April 12, 2024, 5:39 p.m. OK PyPy 3-64 TESTS 27 171 17305600
256390404 Madfyre E April 12, 2024, 11:55 p.m. OK PyPy 3-64 TESTS 27 187 14336000
256379653 kto_eto E April 12, 2024, 8:27 p.m. OK PyPy 3-64 TESTS 27 218 15052800
256396663 xxh1999 E April 13, 2024, 2:27 a.m. OK PyPy 3-64 TESTS 27 218 22630400
256361229 eunsoo0607 E April 12, 2024, 5:26 p.m. OK PyPy 3-64 TESTS 27 249 14745600
256400761 maks_stirlitz E April 13, 2024, 3:39 a.m. OK PyPy 3-64 TESTS 27 264 15257600
256367828 golomb E April 12, 2024, 6:22 p.m. OK PyPy 3-64 TESTS 27 390 25088000
256353651 mikeac E April 12, 2024, 4:40 p.m. OK PyPy 3-64 TESTS 27 405 19558400
256372546 vstiff E April 12, 2024, 7:06 p.m. OK Rust 2021 TESTS 27 140 13209600
256371730 vstiff E April 12, 2024, 6:58 p.m. OK Rust 2021 TESTS 27 171 14028800

remove filters

Back to search problems