Codeforces Round 1080 (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
2195 Codeforces Round 1080 (Div. 3) FINISHED False 9000 5238923 Feb. 15, 2026, 2:45 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 8330 ) E Idiot First Search PROGRAMMING dfs and similar dp trees

There is a binary tree of (n+1) vertices ( (n) is odd ), with vertices labeled (0,1,\ldots,n). At most one letter can be written on each vertex of the tree, and all vertices initially have nothing written on them. The root of the tree is vertex (0). In the tree, vertex (0) is the parent of vertex (1), while all other vertices have either (2) children or (0) children. Bob is lost in one vertex of the tree and wishes to escape the tree by reaching vertex (0). This is very easy for most people with common sense. However, since Bob is an idiot, he created a new way of traversing the tree; introducing the "Idiot First Search". When Bob is on vertex (v) ((1 \le v \le n)), Bob's movement is determined as follows: If vertex (v) is a leaf, Bob always moves to the parent of (v); otherwise, check the next few conditions. If nothing is written on vertex (v), Bob writes ' L ' on vertex (v) and moves to the left child of (v); If ' L ' is written on vertex (v), Bob overwrites it to ' R ' and moves to the right child of (v); If ' R ' is written on vertex (v), Bob erases it and moves to the parent of (v). It takes exactly (1) second for Bob to move to an adjacent vertex, so Bob will take exactly (x) seconds to perform (x) moves. It has been shown that regardless of which vertex Bob starts on, Bob can reach vertex (0) in a finite (though possibly inexplicably large) amount of time. We don't know who proved it; surely it can't be Bob, but it is definitely proven. For each vertex (k=1,2,\ldots,n), please determine the total time it takes to reach vertex (0) if Bob started on vertex (k), in seconds. As the values may be huge, you are only asked to compute them modulo (10^9+7). Each test contains multiple test cases. The first line contains the number of test cases (t) ((1 \le t \le 10^4)). The description of the test cases follows. The first line of each test

Tutorials

Codeforces Round 1080 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
363189220 qinglin_zcr E Feb. 15, 2026, 5:10 p.m. OK C++17 (GCC 7-32) TESTS 18 125 12800000
363204336 dl2718281 E Feb. 15, 2026, 6:49 p.m. OK C++17 (GCC 7-32) TESTS 18 156 5632000
363239622 RDXww E Feb. 16, 2026, 5:58 a.m. OK C++17 (GCC 7-32) TESTS 18 156 9216000
363239702 devecent E Feb. 16, 2026, 5:59 a.m. OK C++17 (GCC 7-32) TESTS 18 171 4710400
363213924 Saleh_Nawar E Feb. 15, 2026, 8:36 p.m. OK C++17 (GCC 7-32) TESTS 18 171 6758400
363190326 Medak E Feb. 15, 2026, 5:13 p.m. OK C++17 (GCC 7-32) TESTS 18 171 6860800
363199474 anuragsahu31 E Feb. 15, 2026, 6:08 p.m. OK C++17 (GCC 7-32) TESTS 18 171 9216000
363190101 am1n_1602 E Feb. 15, 2026, 5:12 p.m. OK C++17 (GCC 7-32) TESTS 18 171 10444800
363189649 Dark_phoenix6127 E Feb. 15, 2026, 5:11 p.m. OK C++17 (GCC 7-32) TESTS 18 187 7168000
363234717 liserver E Feb. 16, 2026, 4:48 a.m. OK C++17 (GCC 7-32) TESTS 18 187 7987200
363208821 Interstellar001 E Feb. 15, 2026, 7:38 p.m. OK C++20 (GCC 13-64) TESTS 18 140 7372800
363206635 algophoenix404 E Feb. 15, 2026, 7:13 p.m. OK C++20 (GCC 13-64) TESTS 18 140 14028800
363236694 Ebraaaaaaaaaaaaaaaaaa E Feb. 16, 2026, 5:17 a.m. OK C++20 (GCC 13-64) TESTS 18 140 15257600
363197986 Forsaken270 E Feb. 15, 2026, 5:57 p.m. OK C++20 (GCC 13-64) TESTS 18 140 17715200
363229211 a_foolish_OIer E Feb. 16, 2026, 3:05 a.m. OK C++20 (GCC 13-64) TESTS 18 140 17817600
363191723 Koraniel E Feb. 15, 2026, 5:17 p.m. OK C++20 (GCC 13-64) TESTS 18 140 26931200
363188269 Fameys E Feb. 15, 2026, 5:08 p.m. OK C++20 (GCC 13-64) TESTS 18 156 1433600
363233253 iiwind_ E Feb. 16, 2026, 4:27 a.m. OK C++20 (GCC 13-64) TESTS 18 156 6553600
363186227 ruqiya2011 E Feb. 15, 2026, 5:03 p.m. OK C++20 (GCC 13-64) TESTS 18 156 7680000
363207184 ItsNotMeItsYou E Feb. 15, 2026, 7:19 p.m. OK C++20 (GCC 13-64) TESTS 18 156 11264000
363191223 avakanksh1 E Feb. 15, 2026, 5:14 p.m. OK C++23 (GCC 14-64, msys2) TESTS 18 78 11980800
363208944 jackylova_fan_fan_fan E Feb. 15, 2026, 7:40 p.m. OK C++23 (GCC 14-64, msys2) TESTS 18 140 5836800
363238148 GaneshAggarwal66 E Feb. 16, 2026, 5:37 a.m. OK C++23 (GCC 14-64, msys2) TESTS 18 140 5939200
363212820 von2401 E Feb. 15, 2026, 8:25 p.m. OK C++23 (GCC 14-64, msys2) TESTS 18 140 8806400
363194127 tranbaonguyen011120 E Feb. 15, 2026, 5:31 p.m. OK C++23 (GCC 14-64, msys2) TESTS 18 140 13004800
363214584 Echo_Loop E Feb. 15, 2026, 8:44 p.m. OK C++23 (GCC 14-64, msys2) TESTS 18 140 13414400
363227257 fanhuaxingyu E Feb. 16, 2026, 2:20 a.m. OK C++23 (GCC 14-64, msys2) TESTS 18 140 14131200
363229799 kiran_reddy.29 E Feb. 16, 2026, 3:19 a.m. OK C++23 (GCC 14-64, msys2) TESTS 18 140 15360000
363213961 Mysteries E Feb. 15, 2026, 8:37 p.m. OK C++23 (GCC 14-64, msys2) TESTS 18 140 15360000
363200335 awoo E Feb. 15, 2026, 6:15 p.m. OK C++23 (GCC 14-64, msys2) TESTS 18 140 15360000
363190267 1435730 E Feb. 15, 2026, 5:12 p.m. OK GNU C11 TESTS 18 187 13209600
363186802 actualtsg E Feb. 15, 2026, 5:04 p.m. OK GNU C11 TESTS 18 1421 9318400
363186792 znnr E Feb. 15, 2026, 5:04 p.m. OK Go TESTS 18 203 16998400
363186592 ahmeddhibi E Feb. 15, 2026, 5:04 p.m. OK Java 21 TESTS 18 328 8192000
363194212 naman2277 E Feb. 15, 2026, 5:32 p.m. OK Java 21 TESTS 18 375 45260800
363205377 hg_2005 E Feb. 15, 2026, 6:59 p.m. OK Java 21 TESTS 18 421 22118400
363186973 abhaykr1232 E Feb. 15, 2026, 5:05 p.m. OK Java 21 TESTS 18 421 33484800
363186458 MUKESH_KUMAR_K E Feb. 15, 2026, 5:04 p.m. OK Java 21 TESTS 18 453 4300800
363191006 AKASSH.M E Feb. 15, 2026, 5:14 p.m. OK Java 21 TESTS 18 453 16486400
363186544 nitish_001 E Feb. 15, 2026, 5:04 p.m. OK Java 21 TESTS 18 484 5120000
363194172 kylin0714 E Feb. 15, 2026, 5:31 p.m. OK Java 21 TESTS 18 515 15974400
363184444 teena53597 E Feb. 15, 2026, 4:59 p.m. OK Java 21 TESTS 18 515 33689600
363185787 RahulAhuja2901 E Feb. 15, 2026, 5:02 p.m. OK Java 21 TESTS 18 515 59494400
363192896 SilverBullet4869 E Feb. 15, 2026, 5:24 p.m. OK Java 8 TESTS 18 875 24166400
363185380 jayakrishna_04 E Feb. 15, 2026, 5:01 p.m. OK Java 8 TESTS 18 1062 10956800
363199241 mittalriya E Feb. 15, 2026, 6:06 p.m. OK Java 8 TESTS 18 1062 26419200
363184163 xxxtentaclez E Feb. 15, 2026, 4:58 p.m. OK Kotlin 1.9 TESTS 18 968 63590400
363184157 SarthakSharma18 E Feb. 15, 2026, 4:58 p.m. OK PHP TESTS 18 875 71475200
363186212 WaffleMan E Feb. 15, 2026, 5:03 p.m. OK PyPy 3 TESTS 18 1578 26931200
363185925 TLON E Feb. 15, 2026, 5:02 p.m. OK PyPy 3-64 TESTS 18 218 69324800
363235683 Dash10107 E Feb. 16, 2026, 5:02 a.m. OK PyPy 3-64 TESTS 18 234 34406400
363189117 KidusMesfin E Feb. 15, 2026, 5:10 p.m. OK PyPy 3-64 TESTS 18 265 37478400
363187639 HailHitler300445 E Feb. 15, 2026, 5:06 p.m. OK PyPy 3-64 TESTS 18 265 72806400
363190308 amirhassanpour E Feb. 15, 2026, 5:13 p.m. OK PyPy 3-64 TESTS 18 265 76083200
363208265 flamingdot E Feb. 15, 2026, 7:32 p.m. OK PyPy 3-64 TESTS 18 281 72908800
363207572 flamingdot E Feb. 15, 2026, 7:23 p.m. OK PyPy 3-64 TESTS 18 281 72908800
363204656 flamingdot E Feb. 15, 2026, 6:52 p.m. OK PyPy 3-64 TESTS 18 281 72908800
363198406 Only365 E Feb. 15, 2026, 6 p.m. OK PyPy 3-64 TESTS 18 296 21094400
363215113 gardengnome E Feb. 15, 2026, 8:51 p.m. OK PyPy 3-64 TESTS 18 296 41676800
363187369 alok_chandra01 E Feb. 15, 2026, 5:06 p.m. OK Python 3 TESTS 18 531 80486400
363186006 JashCodes E Feb. 15, 2026, 5:02 p.m. OK Python 3 TESTS 18 671 84480000
363236202 honghua-zhang E Feb. 16, 2026, 5:10 a.m. OK Python 3 TESTS 18 734 109875200
363191455 anti_19 E Feb. 15, 2026, 5:14 p.m. OK Python 3 TESTS 18 921 53350400
363191224 shipsquatch E Feb. 15, 2026, 5:14 p.m. OK Python 3 TESTS 18 1031 78848000
363205536 Kotik801 E Feb. 15, 2026, 7:01 p.m. OK Python 3 TESTS 18 1093 73830400
363204696 Kotik801 E Feb. 15, 2026, 6:53 p.m. OK Python 3 TESTS 18 1140 73932800
363237826 honghua-zhang E Feb. 16, 2026, 5:32 a.m. OK Python 3 TESTS 18 1171 69324800
363203115 Kotik801 E Feb. 15, 2026, 6:37 p.m. OK Python 3 TESTS 18 1187 71372800
363191325 quandum E Feb. 15, 2026, 5:14 p.m. OK Python 3 TESTS 18 1218 109670400
363229953 Spheniscine E Feb. 16, 2026, 3:23 a.m. OK Rust 2021 TESTS 18 109 22835200
363199300 patacca E Feb. 15, 2026, 6:06 p.m. OK Rust 2024 TESTS 18 109 34099200
363191261 Tantellam E Feb. 15, 2026, 5:14 p.m. OK Rust 2024 TESTS 18 140 20070400
363221348 emoreira E Feb. 15, 2026, 10:58 p.m. OK Rust 2024 TESTS 18 140 26112000

remove filters

Back to search problems