Educational Codeforces Round 179 (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
2111 Educational Codeforces Round 179 (Rated for Div. 2) FINISHED False 7200 27444323 June 3, 2025, 2:35 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 20653 ) A Energy Crystals PROGRAMMING greedy implementation math

There are three energy crystals numbered (1), (2), and (3); let's denote the energy level of the (i)-th crystal as (a_i). Initially, all of them are discharged, meaning their energy levels are equal to (0). Each crystal needs to be charged to level (x) (exactly (x), not greater) . In one action, you can increase the energy level of any one crystal by any positive amount; however, the energy crystals are synchronized with each other, so an action can only be performed if the following condition is met afterward: for each pair of crystals (i), (j), it must hold that (a_{i} \ge \lfloor\frac{a_{j}}{2}\rfloor). What is the minimum number of actions required to charge all the crystals? Each test consists of several test cases. The first line contains a single integer (t) ((1 \le t \le 10^{4})) — the number of test cases. The description of the test cases follows. The only line of each test case contains a single integer (x) ((1 \le x \le 10^{9})). For each test case, output a single integer — the minimum number of actions required to charge all energy crystals to level (x). In the first test case, one possible sequence of actions is: ()0, 0, 0 \to \color{red}{1}, 0, 0 \to 1, 0, \color{red}{1} \to 1, \color{red}{1}, 1() One of the possible sequences of actions in the second test case is: ()0, 0, 0 \to \color{red}{1}, 0, 0 \to 1, \color{red}{1}, 0 \to 1, 1, \color{red}{2} \to \color{red}{3}, 1, 2 \to 3, \color{red}{5}, 2 \to \color{red}{5}, 5, 2 \to 5, 5, \color{red}{5}()

Tutorials

Educational Codeforces Round 179 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
322921387 alazarog A June 5, 2025, 1:34 a.m. OK C# 10 TESTS 3 93 512000
322830035 IRacle A June 4, 2025, 9:10 a.m. OK C# 10 TESTS 3 93 512000
322921220 alazarog A June 5, 2025, 1:28 a.m. OK C# 13 TESTS 3 108 204800
322899191 Kartik_6600 A June 4, 2025, 6:08 p.m. OK C++17 (GCC 7-32) TESTS 3 30 0
322801152 CHANDANKR7730 A June 4, 2025, 4:58 a.m. OK C++17 (GCC 7-32) TESTS 3 30 0
322941221 Hasibur_Rahmen A June 5, 2025, 6 a.m. OK C++17 (GCC 7-32) TESTS 3 30 102400
322841395 NOT_OVER_YET A June 4, 2025, 10:28 a.m. OK C++17 (GCC 7-32) TESTS 3 30 80998400
322890783 iamsiamhossen A June 4, 2025, 4:54 p.m. OK C++17 (GCC 7-32) TESTS 3 31 0
322925334 abhinavjais455 A June 5, 2025, 2:56 a.m. OK C++17 (GCC 7-32) TESTS 3 31 0
322895393 NeTi A June 4, 2025, 5:35 p.m. OK C++17 (GCC 7-32) TESTS 3 31 0
322893006 saiful_islam_bk A June 4, 2025, 5:14 p.m. OK C++17 (GCC 7-32) TESTS 3 31 0
322892152 albatross1811 A June 4, 2025, 5:06 p.m. OK C++17 (GCC 7-32) TESTS 3 31 0
322888251 lockenkey A June 4, 2025, 4:32 p.m. OK C++17 (GCC 7-32) TESTS 3 31 0
322791158 Kagarii22 A June 4, 2025, 2:28 a.m. OK C++20 (GCC 13-64) TESTS 3 30 0
322927243 Gabrielortz_ A June 5, 2025, 3:22 a.m. OK C++20 (GCC 13-64) TESTS 3 30 0
322880270 whitedevil2829 A June 4, 2025, 3:24 p.m. OK C++20 (GCC 13-64) TESTS 3 30 0
322879998 Platon_rumilov A June 4, 2025, 3:21 p.m. OK C++20 (GCC 13-64) TESTS 3 30 0
322828550 johyy A June 4, 2025, 8:59 a.m. OK C++20 (GCC 13-64) TESTS 3 30 0
322819013 badmash_tanmay A June 4, 2025, 7:52 a.m. OK C++20 (GCC 13-64) TESTS 3 30 0
322802954 BL4Z4R A June 4, 2025, 5:18 a.m. OK C++20 (GCC 13-64) TESTS 3 30 0
322796617 sayak18cf A June 4, 2025, 3:58 a.m. OK C++20 (GCC 13-64) TESTS 3 30 0
322795801 henhenthehenhen A June 4, 2025, 3:45 a.m. OK C++20 (GCC 13-64) TESTS 3 30 0
322785352 richi78 A June 3, 2025, 11:50 p.m. OK C++20 (GCC 13-64) TESTS 3 30 0
322795597 TanvirZihad A June 4, 2025, 3:42 a.m. OK C++23 (GCC 14-64, msys2) TESTS 3 30 0
322898862 DBP_Heaven A June 4, 2025, 6:05 p.m. OK C++23 (GCC 14-64, msys2) TESTS 3 30 0
322894653 Spec70rV0r7ex A June 4, 2025, 5:28 p.m. OK C++23 (GCC 14-64, msys2) TESTS 3 30 0
322863436 yumz_O A June 4, 2025, 1:14 p.m. OK C++23 (GCC 14-64, msys2) TESTS 3 30 0
322838976 Beater25 A June 4, 2025, 10:10 a.m. OK C++23 (GCC 14-64, msys2) TESTS 3 30 0
322836175 rudra_kaiser A June 4, 2025, 9:49 a.m. OK C++23 (GCC 14-64, msys2) TESTS 3 30 0
322799617 poisonous-sheep A June 4, 2025, 4:40 a.m. OK C++23 (GCC 14-64, msys2) TESTS 3 30 0
322791781 Kinsoul A June 4, 2025, 2:39 a.m. OK C++23 (GCC 14-64, msys2) TESTS 3 30 0
322789953 pengpeng_fudan A June 4, 2025, 2:04 a.m. OK C++23 (GCC 14-64, msys2) TESTS 3 30 0
322858110 oreshn1k A June 4, 2025, 12:33 p.m. OK C++23 (GCC 14-64, msys2) TESTS 3 30 102400
322837557 bluemegane A June 4, 2025, 9:59 a.m. OK C# 8 TESTS 3 156 614400
322853430 srikarprakash A June 4, 2025, 11:59 a.m. OK GNU C11 TESTS 3 77 0
322915883 Utkarsh1896 A June 4, 2025, 10:25 p.m. OK GNU C11 TESTS 3 77 0
322793315 sjnikolas123 A June 4, 2025, 3:05 a.m. OK GNU C11 TESTS 3 77 102400
322817129 nahida520 A June 4, 2025, 7:38 a.m. OK GNU C11 TESTS 3 93 102400
322779753 Seshi_kiran16 A June 3, 2025, 9:39 p.m. OK GNU C11 TESTS 3 93 102400
322798689 tekka_ity A June 4, 2025, 4:28 a.m. OK Java 21 TESTS 3 171 204800
322794090 yashjaiswal2509 A June 4, 2025, 3:17 a.m. OK Java 21 TESTS 3 187 0
322792596 keshav_.agg A June 4, 2025, 2:53 a.m. OK Java 21 TESTS 3 202 102400
322819907 swatishivam23 A June 4, 2025, 7:58 a.m. OK Java 21 TESTS 3 203 204800
322803103 bomakhamchha A June 4, 2025, 5:19 a.m. OK Java 21 TESTS 3 217 0
322817569 ajaykm000563 A June 4, 2025, 7:41 a.m. OK Java 21 TESTS 3 218 716800
322887803 venkatesh7779 A June 4, 2025, 4:28 p.m. OK Java 21 TESTS 3 233 0
322796164 suprithreddy A June 4, 2025, 3:51 a.m. OK Java 21 TESTS 3 234 0
322832693 viraj07 A June 4, 2025, 9:25 a.m. OK Java 21 TESTS 3 234 512000
322842016 GoodBoy20 A June 4, 2025, 10:33 a.m. OK Java 21 TESTS 3 249 0
322843439 Abhi_Valani A June 4, 2025, 10:44 a.m. OK Java 8 TESTS 3 124 0
322929343 Purav_Shah07 A June 5, 2025, 3:50 a.m. OK Java 8 TESTS 3 155 0
322914595 Potato_Pc A June 4, 2025, 9:52 p.m. OK Java 8 TESTS 3 156 0
322852636 Tharun_Reddy_ A June 4, 2025, 11:53 a.m. OK Java 8 TESTS 3 171 0
322777193 Akshatgupta069_069 A June 3, 2025, 8:45 p.m. OK Java 8 TESTS 3 171 0
322906236 Shashwata_32 A June 4, 2025, 7:25 p.m. OK Java 8 TESTS 3 186 16896000
322784855 ianwa09 A June 3, 2025, 11:31 p.m. OK Java 8 TESTS 3 187 0
322793692 sadgirpooja20 A June 4, 2025, 3:11 a.m. OK Java 8 TESTS 3 217 0
322869973 Ishaan__23 A June 4, 2025, 2:02 p.m. OK Java 8 TESTS 3 218 0
322832666 Radhe_1 A June 4, 2025, 9:25 a.m. OK Java 8 TESTS 3 218 0
322791875 vogel-im-kafig A June 4, 2025, 2:40 a.m. OK PyPy 2 TESTS 3 389 7577600
322836582 pTaran17 A June 4, 2025, 9:52 a.m. OK PyPy 3 TESTS 3 124 3891200
322928471 ag5356 A June 5, 2025, 3:39 a.m. OK PyPy 3 TESTS 3 140 3993600
322842446 fridge2 A June 4, 2025, 10:36 a.m. OK PyPy 3 TESTS 3 186 3686400
322821416 DSKroc A June 4, 2025, 8:09 a.m. OK PyPy 3 TESTS 3 187 3481600
322818231 santhoshsparky A June 4, 2025, 7:46 a.m. OK PyPy 3 TESTS 3 187 3788800
322916513 poindexter1729 A June 4, 2025, 10:43 p.m. OK PyPy 3 TESTS 3 218 4505600
322783489 Azisi A June 3, 2025, 10:44 p.m. OK PyPy 3 TESTS 3 218 4710400
322883604 abhu.krish59 A June 4, 2025, 3:51 p.m. OK PyPy 3 TESTS 3 234 4710400
322878639 code12123 A June 4, 2025, 3:10 p.m. OK PyPy 3 TESTS 3 264 2969600
322885798 JuanLozano3 A June 4, 2025, 4:11 p.m. OK PyPy 3 TESTS 3 265 4915200
322899505 smz.26 A June 4, 2025, 6:11 p.m. OK PyPy 3-64 TESTS 3 77 3379200
322836728 aurthakur A June 4, 2025, 9:53 a.m. OK PyPy 3-64 TESTS 3 92 2355200
322797602 gardengnome A June 4, 2025, 4:11 a.m. OK PyPy 3-64 TESTS 3 92 2355200
322780589 Kabish07 A June 3, 2025, 10:01 p.m. OK PyPy 3-64 TESTS 3 93 2867200
322786421 hundunlilun1 A June 4, 2025, 12:32 a.m. OK PyPy 3-64 TESTS 3 93 2969600
322828801 JUNLINE A June 4, 2025, 9:01 a.m. OK PyPy 3-64 TESTS 3 93 3276800
322789980 smilences A June 4, 2025, 2:04 a.m. OK PyPy 3-64 TESTS 3 93 3686400
322881390 hirose2020 A June 4, 2025, 3:32 p.m. OK PyPy 3-64 TESTS 3 108 2355200
322803339 hxrshh A June 4, 2025, 5:22 a.m. OK PyPy 3-64 TESTS 3 108 2355200
322803283 whaeee A June 4, 2025, 5:21 a.m. OK PyPy 3-64 TESTS 3 108 2355200
322919272 Cipher_In_ A June 5, 2025, 12:29 a.m. OK Python 3 TESTS 3 62 1228800
322896926 dzh_pow A June 4, 2025, 5:48 p.m. OK Python 3 TESTS 3 93 0
322895208 Soyipov0512 A June 4, 2025, 5:33 p.m. OK Python 3 TESTS 3 93 204800
322895124 Soyipov0512 A June 4, 2025, 5:33 p.m. OK Python 3 TESTS 3 93 204800
322873365 Taut_Coder A June 4, 2025, 2:28 p.m. OK Python 3 TESTS 3 93 204800
322845866 ashvathhb A June 4, 2025, 11:03 a.m. OK Python 3 TESTS 3 93 204800
322802192 inbaselvanayyanar A June 4, 2025, 5:10 a.m. OK Python 3 TESTS 3 93 204800
322799440 svrmalaviya A June 4, 2025, 4:38 a.m. OK Python 3 TESTS 3 93 204800
322828747 JUNLINE A June 4, 2025, 9:01 a.m. OK Python 3 TESTS 3 93 409600
322780103 ManuelFelizardo A June 3, 2025, 9:48 p.m. OK Python 3 TESTS 3 93 1638400
322797500 i-m-ag-e A June 4, 2025, 4:09 a.m. OK Rust 2021 TESTS 3 46 0
322794129 0x81 A June 4, 2025, 3:18 a.m. OK Rust 2021 TESTS 3 46 0
322783896 cinkozzz A June 3, 2025, 10:57 p.m. OK Rust 2021 TESTS 3 46 102400
322900733 DanielAnker A June 4, 2025, 6:22 p.m. OK Rust 2021 TESTS 3 61 0
322792151 wayword A June 4, 2025, 2:45 a.m. OK Rust 2021 TESTS 3 61 0
322869157 battlmonstr A June 4, 2025, 1:56 p.m. OK Rust 2021 TESTS 3 62 0
322826462 ton A June 4, 2025, 8:45 a.m. OK Rust 2021 TESTS 3 62 0
322826427 ton A June 4, 2025, 8:45 a.m. OK Rust 2021 TESTS 3 62 0
322817484 Playnext A June 4, 2025, 7:40 a.m. OK Rust 2021 TESTS 3 62 0

remove filters

Back to search problems