Codeforces Global Round 24

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
1764 Codeforces Global Round 24 FINISHED False 9000 67794863 Nov. 26, 2022, 2:05 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 603 ) G1 Doremy's Perfect DS Class (Easy Version) PROGRAMMING binary search interactive

B'The only difference between this problem and the other two versions is the maximum number of queries. In this version, you are allowed to ask at most mathbf{30} queries. You can make hacks only if all versions of the problem are solved. This is an interactive problem. "Everybody! Doremy 's Perfect Data Structure Class is about to start! Come and do your best if you want to have as much IQ as me!" In today 's Data Structure class, Doremy is teaching everyone a powerful data structure -- Doremy tree! Now she gives you a quiz to prove that you are paying attention in class. Given an array a of length m , Doremy tree supports the query Q(l,r,k) , where 1 <= q l <= q r <= q m and 1 <= q k <= q m , which returns the number of distinct integers in the array <= ft[ lfloor frac{a_l}{k} rfloor, lfloor frac{a_{l+1}}{k} rfloor, ldots, lfloor frac{a_r}{k} rfloor right] . Doremy has a secret permutation p of integers from 1 to n . You can make queries, in one query, you give 3 integers l,r,k ( 1 <= q l <= q r <= q n , 1 <= q k <= q n ) and receive the value of Q(l,r,k) for the array p . Can you find the index y ( 1 <= q y <= q n ) such that p_y=1 in at most mathbf{30} queries? Note that the permutation p is fixed before any queries are made. You begin the interaction by reading an integer n ( 3 <= n <= 1024 ) in the first line -- the length of the permutation. To make a query, you should output To give the answer, you should output After printing a query or the answer, do not forget to output the end of line and flush the output. Otherwise, you will get Idleness limit exceeded. To do this, use: Hacks Format The first line of the hack contains an integer n ( 3 <= n <= 1024 ) -- the length of the permutation. The second line of the hack contains n distinct integers p_1,p_2, ldots,p_n ( 1 <= p_i <= n ) xe2'...

Tutorials

Codeforces Global Round 24 Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
182699297 Gassa G1 Nov. 26, 2022, 4:33 p.m. OK D TESTS 66 15 0
182702246 hos.lyric G1 Nov. 26, 2022, 5:03 p.m. OK D TESTS 66 30 0
182718340 Gassa G1 Nov. 26, 2022, 7:56 p.m. OK D TESTS 66 31 204800
182696389 rainboy G1 Nov. 26, 2022, 4:20 p.m. OK GNU C11 TESTS 66 15 0
182695641 dlalswp25 G1 Nov. 26, 2022, 4:17 p.m. OK GNU C++14 TESTS 66 15 0
182697340 HackerMonk G1 Nov. 26, 2022, 4:25 p.m. OK GNU C++14 TESTS 66 15 0
182692967 tomerun G1 Nov. 26, 2022, 4:04 p.m. OK GNU C++14 TESTS 66 15 0
182696089 liuhengxi G1 Nov. 26, 2022, 4:19 p.m. OK GNU C++14 TESTS 66 15 0
182740984 m1979823301m G1 Nov. 27, 2022, 5:14 a.m. OK GNU C++14 TESTS 66 15 0
182695185 Sol1 G1 Nov. 26, 2022, 4:15 p.m. OK GNU C++14 TESTS 66 15 307200
182683421 chuochuo G1 Nov. 26, 2022, 3:21 p.m. OK GNU C++14 TESTS 66 15 307200
182690843 emptyhope G1 Nov. 26, 2022, 3:54 p.m. OK GNU C++14 TESTS 66 31 9932800
182719098 aa2985759 G1 Nov. 26, 2022, 8:09 p.m. OK GNU C++17 TESTS 66 15 0
182703167 Dhruvil_Kakadiya G1 Nov. 26, 2022, 5:09 p.m. OK GNU C++17 TESTS 66 15 0
182702542 AdhityaMangudy G1 Nov. 26, 2022, 5:05 p.m. OK GNU C++17 TESTS 66 15 0
182699630 Miracle0viiiiiv G1 Nov. 26, 2022, 4:34 p.m. OK GNU C++17 TESTS 66 15 0
182742559 emonzhong G1 Nov. 27, 2022, 5:40 a.m. OK GNU C++17 TESTS 66 15 0
182695731 Agreb G1 Nov. 26, 2022, 4:17 p.m. OK GNU C++17 TESTS 66 15 0
182694357 ugly2333 G1 Nov. 26, 2022, 4:11 p.m. OK GNU C++17 TESTS 66 15 0
182693886 GoRed G1 Nov. 26, 2022, 4:08 p.m. OK GNU C++17 TESTS 66 15 0
182693265 hank55663 G1 Nov. 26, 2022, 4:05 p.m. OK GNU C++17 TESTS 66 15 0
182698919 chaeyihwan G1 Nov. 26, 2022, 4:31 p.m. OK GNU C++17 TESTS 66 15 0
182698318 1092515503 G1 Nov. 26, 2022, 4:29 p.m. OK GNU C++17 (64) TESTS 66 15 0
182732749 AlephZero01 G1 Nov. 27, 2022, 1:42 a.m. OK GNU C++17 (64) TESTS 66 15 0
182718497 Benq G1 Nov. 26, 2022, 7:59 p.m. OK GNU C++17 (64) TESTS 66 15 0
182702775 Rafbill G1 Nov. 26, 2022, 5:07 p.m. OK GNU C++17 (64) TESTS 66 15 0
182702249 tenshida G1 Nov. 26, 2022, 5:03 p.m. OK GNU C++17 (64) TESTS 66 15 0
182699332 Andreasyan G1 Nov. 26, 2022, 4:33 p.m. OK GNU C++17 (64) TESTS 66 15 0
182699095 K-H G1 Nov. 26, 2022, 4:32 p.m. OK GNU C++17 (64) TESTS 66 15 0
182697523 ainta G1 Nov. 26, 2022, 4:26 p.m. OK GNU C++17 (64) TESTS 66 15 0
182697318 kotatsugame G1 Nov. 26, 2022, 4:25 p.m. OK GNU C++17 (64) TESTS 66 15 0
182696027 Nyaan G1 Nov. 26, 2022, 4:19 p.m. OK GNU C++17 (64) TESTS 66 15 0
182738700 crescent_yhw G1 Nov. 27, 2022, 4:26 a.m. OK GNU C++20 (64) TESTS 66 15 0
182736666 dragonslayerintraining G1 Nov. 27, 2022, 3:37 a.m. OK GNU C++20 (64) TESTS 66 15 0
182736158 feecIe6418 G1 Nov. 27, 2022, 3:24 a.m. OK GNU C++20 (64) TESTS 66 15 0
182736032 wery0 G1 Nov. 27, 2022, 3:21 a.m. OK GNU C++20 (64) TESTS 66 15 0
182731771 ArtAlex G1 Nov. 27, 2022, 1:08 a.m. OK GNU C++20 (64) TESTS 66 15 0
182731440 ArtAlex G1 Nov. 27, 2022, 12:57 a.m. OK GNU C++20 (64) TESTS 66 15 0
182731183 njwrz G1 Nov. 27, 2022, 12:48 a.m. OK GNU C++20 (64) TESTS 66 15 0
182719149 mcj201314 G1 Nov. 26, 2022, 8:10 p.m. OK GNU C++20 (64) TESTS 66 15 0
182718523 zxy0909 G1 Nov. 26, 2022, 8 p.m. OK GNU C++20 (64) TESTS 66 15 0
182742003 liaopengfei G1 Nov. 27, 2022, 5:31 a.m. OK GNU C++20 (64) TESTS 66 15 0
182690085 Tlatoani G1 Nov. 26, 2022, 3:50 p.m. OK Kotlin 1.6 TESTS 66 248 0
182697958 arvindf232 G1 Nov. 26, 2022, 4:28 p.m. OK Kotlin 1.6 TESTS 66 265 0
182693478 amenotiomoi G1 Nov. 26, 2022, 4:06 p.m. OK PyPy 3-64 TESTS 66 62 0

remove filters

Back to search problems