Codeforces Round 984 (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
2036 Codeforces Round 984 (Div. 3) FINISHED False 8100 45847523 Nov. 2, 2024, 2:35 p.m.

Problems

Solved
Index
Name
Type
Tags
Community Tag
Rating
( 1660 ) G Library of Magic PROGRAMMING binary search bitmasks constructive algorithms interactive

This is an interactive problem. The Department of Supernatural Phenomena at the Oxenfurt Academy has opened the Library of Magic, which contains the works of the greatest sorcerers of Redania — (n) ((3 \leq n \leq 10^{18})) types of books, numbered from (1) to (n). Each book's type number is indicated on its spine. Moreover, each type of book is stored in the library in exactly two copies! And you have been appointed as the librarian. One night, you wake up to a strange noise and see a creature leaving the building through a window. Three thick tomes of different colors were sticking out of the mysterious thief's backpack. Before you start searching for them, you decide to compute the numbers (a), (b), and (c) written on the spines of these books. All three numbers are distinct . So, you have an unordered set of tomes, which includes one tome with each of the pairwise distinct numbers (a), (b), and (c), and two tomes for all numbers from (1) to (n), except for (a), (b), and (c). You want to find these values (a), (b), and (c). Since you are not working in a simple library, but in the Library of Magic, you can only use one spell in the form of a query to check the presence of books in their place: " xor l r " — Bitwise XOR query with parameters (l) and (r). Let (k) be the number of such tomes in the library whose numbers are greater than or equal to (l) and less than or equal to (r). You will receive the result of the computation (v_1 \oplus v_2 \oplus ... \oplus v_k), where (v_1 ... v_k) are the numbers on the spines of these tomes, and (\oplus) denotes the operation of bitwise exclusive OR . Since your magical abilities as a librarian are severely limited, you can make no more than (150) queries. The first line of input contains an integer (t) ((1 \le t \le 300)) — the number of test cases. The first line of each test case contains a single

Tutorials

Codeforces Round 984 (Div. 3) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
289602016 Heart_Blue G Nov. 2, 2024, 5:05 p.m. OK C++17 (GCC 7-32) TESTS 14 171 102400
289697543 CoderAbhi27 G Nov. 2, 2024, 9:15 p.m. OK C++17 (GCC 7-32) TESTS 14 187 102400
289697483 CoderAbhi27 G Nov. 2, 2024, 9:15 p.m. OK C++17 (GCC 7-32) TESTS 14 202 102400
289649240 chennie G Nov. 2, 2024, 6:18 p.m. OK C++17 (GCC 7-32) TESTS 14 203 102400
289597337 Good_WeekDay_ G Nov. 2, 2024, 4:49 p.m. OK C++17 (GCC 7-32) TESTS 14 218 102400
289683039 ShirayukiNoa G Nov. 2, 2024, 6:50 p.m. OK C++17 (GCC 7-32) TESTS 14 233 102400
289603466 sckrt G Nov. 2, 2024, 5:12 p.m. OK C++17 (GCC 7-32) TESTS 14 234 0
289602164 rnonepm G Nov. 2, 2024, 5:06 p.m. OK C++17 (GCC 7-32) TESTS 14 234 102400
289716611 nizamoff G Nov. 3, 2024, 4:25 a.m. OK C++17 (GCC 7-32) TESTS 14 264 102400
289602571 heisenberger69 G Nov. 2, 2024, 5:08 p.m. OK C++17 (GCC 7-32) TESTS 14 264 102400
289604130 Aldk G Nov. 2, 2024, 5:16 p.m. OK C++20 (GCC 13-64) TESTS 14 155 0
289598615 Lev_dimchenko_autist G Nov. 2, 2024, 4:52 p.m. OK C++20 (GCC 13-64) TESTS 14 155 0
289599811 GOTKAKO G Nov. 2, 2024, 4:56 p.m. OK C++20 (GCC 13-64) TESTS 14 171 0
289603091 i_liek_cheezits G Nov. 2, 2024, 5:10 p.m. OK C++20 (GCC 13-64) TESTS 14 186 0
289715694 Badint G Nov. 3, 2024, 4:09 a.m. OK C++20 (GCC 13-64) TESTS 14 187 102400
289606541 VietHai1709 G Nov. 2, 2024, 5:28 p.m. OK C++20 (GCC 13-64) TESTS 14 202 0
289595974 Mirzaa G Nov. 2, 2024, 4:47 p.m. OK C++20 (GCC 13-64) TESTS 14 202 0
289601992 hesham G Nov. 2, 2024, 5:05 p.m. OK C++20 (GCC 13-64) TESTS 14 202 102400
289712556 Fantasy_Blue G Nov. 3, 2024, 3:14 a.m. OK C++20 (GCC 13-64) TESTS 14 203 0
289709007 3R1C G Nov. 3, 2024, 2:03 a.m. OK C++20 (GCC 13-64) TESTS 14 203 0
289605756 e_yi G Nov. 2, 2024, 5:25 p.m. OK C++23 (GCC 14-64, msys2) TESTS 14 155 102400
289604587 Dragnoid99 G Nov. 2, 2024, 5:18 p.m. OK C++23 (GCC 14-64, msys2) TESTS 14 187 0
289600385 Camal1331 G Nov. 2, 2024, 4:58 p.m. OK C++23 (GCC 14-64, msys2) TESTS 14 187 102400
289607281 Nxxlt G Nov. 2, 2024, 5:32 p.m. OK C++23 (GCC 14-64, msys2) TESTS 14 202 102400
289606012 Mhamad_aboaljood G Nov. 2, 2024, 5:26 p.m. OK C++23 (GCC 14-64, msys2) TESTS 14 218 102400
289694969 Shu.Rong G Nov. 2, 2024, 8:39 p.m. OK C++23 (GCC 14-64, msys2) TESTS 14 249 0
289693211 Ibad_gau G Nov. 2, 2024, 8:18 p.m. OK C++23 (GCC 14-64, msys2) TESTS 14 249 0
289598784 shyamer3 G Nov. 2, 2024, 4:52 p.m. OK C++23 (GCC 14-64, msys2) TESTS 14 249 0
289709752 sbugnf G Nov. 3, 2024, 2:20 a.m. OK C++23 (GCC 14-64, msys2) TESTS 14 250 2457600
289681847 abhayg_07 G Nov. 2, 2024, 6:41 p.m. OK C++23 (GCC 14-64, msys2) TESTS 14 265 0
289715101 KingofCSES G Nov. 3, 2024, 3:58 a.m. OK D TESTS 14 389 102400
289723029 kroyl G Nov. 3, 2024, 5:46 a.m. OK Go TESTS 14 233 819200
289660527 dusty.and.rusty G Nov. 2, 2024, 6:25 p.m. OK Java 21 TESTS 14 765 2457600
289710735 Sarvan_Yaduvanshi G Nov. 3, 2024, 2:41 a.m. OK Java 21 TESTS 14 1265 1433600
289695275 unlucky_guy G Nov. 2, 2024, 8:43 p.m. OK PyPy 3 TESTS 14 1437 10137600
289609985 rakesh_2468 G Nov. 2, 2024, 5:48 p.m. OK PyPy 3-64 TESTS 14 468 7577600
289607193 _Gawd_ G Nov. 2, 2024, 5:31 p.m. OK PyPy 3-64 TESTS 14 655 6041600
289610796 Sandeep_P G Nov. 2, 2024, 5:54 p.m. OK PyPy 3-64 TESTS 14 718 7782400
289605492 Z_actuary G Nov. 2, 2024, 5:23 p.m. OK PyPy 3-64 TESTS 14 749 4403200
289722147 gardengnome G Nov. 3, 2024, 5:36 a.m. OK PyPy 3-64 TESTS 14 749 7065600
289610590 Sandeep_P G Nov. 2, 2024, 5:53 p.m. OK PyPy 3-64 TESTS 14 749 7475200
289615460 Sandeep_P G Nov. 2, 2024, 6:02 p.m. OK PyPy 3-64 TESTS 14 749 7782400
289709914 fatalerror G Nov. 3, 2024, 2:23 a.m. OK PyPy 3-64 TESTS 14 750 5529600
289710176 fatalerror G Nov. 3, 2024, 2:28 a.m. OK PyPy 3-64 TESTS 14 765 4915200
289645566 Sandeep_P G Nov. 2, 2024, 6:17 p.m. OK PyPy 3-64 TESTS 14 765 7782400
289693031 PaciukZvichainyi G Nov. 2, 2024, 8:16 p.m. OK Rust 2021 TESTS 14 343 0

remove filters

Back to search problems