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
( 1014 ) G Idiot First Search and Queries PROGRAMMING binary search data structures graphs trees

This problem shares the definitions with problem E. However, it does not ask for the same answer. 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. You are asked to answer (q) queries of the following kind: (v\;k): Assuming that Bob started from vertex (v), determine the vertex Bob is on after performing exactly (k) moves ((1 \le v \le n)). For each query, let (T_v) be the time taken to reach vertex (0) from vertex (v). Then, it is guarant

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
363184159 TimeToPretend G Feb. 15, 2026, 4:58 p.m. OK C++17 (GCC 7-32) TESTS 19 781 91033600
363193034 prakhar7472pk G Feb. 15, 2026, 5:25 p.m. OK C++17 (GCC 7-32) TESTS 19 781 124211200
363226817 sabino1 G Feb. 16, 2026, 2:07 a.m. OK C++17 (GCC 7-32) TESTS 19 796 84992000
363205799 Wpwkdhdjdkdj G Feb. 15, 2026, 7:04 p.m. OK C++17 (GCC 7-32) TESTS 19 812 235724800
363225657 Darko2026 G Feb. 16, 2026, 1:27 a.m. OK C++17 (GCC 7-32) TESTS 19 859 80179200
363191060 neijegdattnedtrappen G Feb. 15, 2026, 5:14 p.m. OK C++17 (GCC 7-32) TESTS 19 859 82739200
363237798 linyuqin G Feb. 16, 2026, 5:32 a.m. OK C++17 (GCC 7-32) TESTS 19 875 77926400
363193705 kliiiiiiiiiiiiiiiiiiio G Feb. 15, 2026, 5:28 p.m. OK C++17 (GCC 7-32) TESTS 19 875 138649600
363230081 IamHereForFun G Feb. 16, 2026, 3:25 a.m. OK C++17 (GCC 7-32) TESTS 19 890 124108800
363189414 Xu_YiXiang G Feb. 15, 2026, 5:11 p.m. OK C++17 (GCC 7-32) TESTS 19 921 167936000
363204221 Mohammad_Hacker G Feb. 15, 2026, 6:47 p.m. OK C++20 (GCC 13-64) TESTS 19 578 80486400
363198996 Forsaken270 G Feb. 15, 2026, 6:04 p.m. OK C++20 (GCC 13-64) TESTS 19 609 60313600
363222448 pokeland157 G Feb. 15, 2026, 11:35 p.m. OK C++20 (GCC 13-64) TESTS 19 625 134758400
363212570 Apteryxx G Feb. 15, 2026, 8:21 p.m. OK C++20 (GCC 13-64) TESTS 19 640 56627200
363189504 HinaSnow G Feb. 15, 2026, 5:11 p.m. OK C++20 (GCC 13-64) TESTS 19 671 85299200
363208132 ItsNotMeItsYou G Feb. 15, 2026, 7:30 p.m. OK C++20 (GCC 13-64) TESTS 19 671 99532800
363206966 iwnl G Feb. 15, 2026, 7:16 p.m. OK C++20 (GCC 13-64) TESTS 19 687 87859200
363233173 Fateless G Feb. 16, 2026, 4:26 a.m. OK C++20 (GCC 13-64) TESTS 19 703 178790400
363214005 0101100 G Feb. 15, 2026, 8:37 p.m. OK C++20 (GCC 13-64) TESTS 19 718 100659200
363239662 Mango2011 G Feb. 16, 2026, 5:58 a.m. OK C++20 (GCC 13-64) TESTS 19 734 371302400
363195350 The_Lion_King_777 G Feb. 15, 2026, 5:39 p.m. OK C++23 (GCC 14-64, msys2) TESTS 19 453 55398400
363222714 cjoa G Feb. 15, 2026, 11:47 p.m. OK C++23 (GCC 14-64, msys2) TESTS 19 484 49049600
363184118 yesdgd G Feb. 15, 2026, 4:58 p.m. OK C++23 (GCC 14-64, msys2) TESTS 19 484 57241600
363200212 awoo G Feb. 15, 2026, 6:14 p.m. OK C++23 (GCC 14-64, msys2) TESTS 19 515 48844800
363236544 resstifnurv G Feb. 16, 2026, 5:15 a.m. OK C++23 (GCC 14-64, msys2) TESTS 19 515 76902400
363202867 Arpa G Feb. 15, 2026, 6:35 p.m. OK C++23 (GCC 14-64, msys2) TESTS 19 578 52940800
363185597 Sujal_lohar G Feb. 15, 2026, 5:01 p.m. OK C++23 (GCC 14-64, msys2) TESTS 19 593 60006400
363189980 sophie_fadina G Feb. 15, 2026, 5:12 p.m. OK C++23 (GCC 14-64, msys2) TESTS 19 593 83558400
363209537 bonopo G Feb. 15, 2026, 7:47 p.m. OK C++23 (GCC 14-64, msys2) TESTS 19 609 53452800
363214206 Arshia_Izadi G Feb. 15, 2026, 8:39 p.m. OK C++23 (GCC 14-64, msys2) TESTS 19 609 103526400
363196548 rachit.gupta G Feb. 15, 2026, 5:47 p.m. OK Java 21 TESTS 19 1812 169574400
363196532 shubhansh_gupta G Feb. 15, 2026, 5:47 p.m. OK Java 21 TESTS 19 1812 169574400
363215451 devanshmalhotra17 G Feb. 15, 2026, 8:56 p.m. OK Java 21 TESTS 19 1937 155033600
363187335 mikelou G Feb. 15, 2026, 5:05 p.m. OK PyPy 3-64 TESTS 19 984 101990400
363198463 Only365 G Feb. 15, 2026, 6 p.m. OK PyPy 3-64 TESTS 19 1406 153907200
363210003 tassei903 G Feb. 15, 2026, 7:53 p.m. OK PyPy 3-64 TESTS 19 1406 356249600
363185933 Intrinix G Feb. 15, 2026, 5:02 p.m. OK PyPy 3-64 TESTS 19 1890 226713600
363203984 Polynomu G Feb. 15, 2026, 6:45 p.m. OK PyPy 3-64 TESTS 19 2671 296448000
363190662 Polynomu G Feb. 15, 2026, 5:13 p.m. OK PyPy 3-64 TESTS 19 3093 301158400
363190946 Polynomu G Feb. 15, 2026, 5:14 p.m. OK PyPy 3-64 TESTS 19 3093 303616000
363200507 patacca G Feb. 15, 2026, 6:16 p.m. OK Rust 2024 TESTS 19 796 120115200

remove filters

Back to search problems