Codeforces Round 685 (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
1451 Codeforces Round 685 (Div. 2) FINISHED False 8100 131210663 Nov. 21, 2020, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 3046 ) E2 Bitwise Queries (Hard Version) PROGRAMMING bitmasks constructive algorithms interactive math

B'The only difference between the easy and hard versions is the constraints on the number of queries. This is an interactive problem. Ridbit has a hidden array a of n integers which he wants Ashish to guess. Note that n is a power of two. Ashish is allowed to ask three different types of queries. They are of the form Can you help Ashish guess the elements of the array? In this version, each element takes a value in the range [0, n-1] (inclusive) and Ashish can ask no more than n+1 queries. The first line of input contains one integer n (4 <= n <= 2^{16}) -- the length of the array. It is guaranteed that n is a power of two. To ask a query print a single line containing one of the following (without quotes) For each query, you will receive an integer x whose value depends on the type of query. If the indices queried are invalid or you exceed the number of queries however, you will get x = -1 . In this case, you should terminate the program immediately. When you have guessed the elements of the array, print a single line "! " (without quotes), followed by n space-separated integers -- the elements of the array. Guessing the array does not count towards the number of queries asked. The interactor is not adaptive. The array a does not change with queries. After printing a query do not forget to output the end of the line and flush the output. Otherwise, you will get Idleness limit exceeded. To do this, use: Hacks To hack the solution, use the following test format: On the first line print a single integer n (4 <= n <= 2^{16}) -- the length of the array. It must be a power of 2. The next line should contain n space-separated integers in the range [0, n-1] -- the array a . The array a in the example is [0, 0, 2, 3] . '...

Tutorials

Editorial — Codeforces Round #685

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
99206174 luogu_bot5 E2 Nov. 22, 2020, 12:47 a.m. OK GNU C++11 TESTS 143 405 1024000
99213634 Loi_October1 E2 Nov. 22, 2020, 4:12 a.m. OK GNU C++11 TESTS 143 420 1638400
99205970 luogu_bot5 E2 Nov. 22, 2020, 12:37 a.m. OK GNU C++11 TESTS 143 420 7987200
99209402 Qiuly.qwq E2 Nov. 22, 2020, 2:32 a.m. OK GNU C++11 TESTS 143 420 21094400
99201351 OMG_wc E2 Nov. 21, 2020, 9:24 p.m. OK GNU C++11 TESTS 143 421 819200
99211973 _zom_bie E2 Nov. 22, 2020, 3:36 a.m. OK GNU C++11 TESTS 143 421 819200
99209134 emofunc E2 Nov. 22, 2020, 2:25 a.m. OK GNU C++11 TESTS 143 421 819200
99205657 Hongzy E2 Nov. 22, 2020, 12:22 a.m. OK GNU C++11 TESTS 143 421 2150400
99180383 wh0816 E2 Nov. 21, 2020, 4:27 p.m. OK GNU C++11 TESTS 143 421 12083200
99211355 lanChe E2 Nov. 22, 2020, 3:22 a.m. OK GNU C++11 TESTS 143 436 819200
99199303 c19m E2 Nov. 21, 2020, 8:34 p.m. OK GNU C++14 TESTS 143 577 2150400
99219419 shubham_9586 E2 Nov. 22, 2020, 5:44 a.m. OK GNU C++14 TESTS 143 607 1228800
99208747 KYoA_A E2 Nov. 22, 2020, 2:14 a.m. OK GNU C++14 TESTS 143 623 512000
99194680 farmerboy E2 Nov. 21, 2020, 7:27 p.m. OK GNU C++14 TESTS 143 623 3276800
99209779 Willem E2 Nov. 22, 2020, 2:41 a.m. OK GNU C++14 TESTS 143 623 16076800
99210528 vodacbaoan E2 Nov. 22, 2020, 3 a.m. OK GNU C++14 TESTS 143 639 512000
99201077 cryptomanic E2 Nov. 21, 2020, 9:17 p.m. OK GNU C++14 TESTS 143 639 4608000
99208075 down_down_bear E2 Nov. 22, 2020, 1:54 a.m. OK GNU C++14 TESTS 143 639 5939200
99213223 RainCurtain E2 Nov. 22, 2020, 4:05 a.m. OK GNU C++14 TESTS 143 639 7987200
99218225 khikiat E2 Nov. 22, 2020, 5:26 a.m. OK GNU C++14 TESTS 143 639 12595200
99196776 Deuchie E2 Nov. 21, 2020, 7:49 p.m. OK GNU C++17 TESTS 143 561 512000
99198514 XDEv11 E2 Nov. 21, 2020, 8:18 p.m. OK GNU C++17 TESTS 143 592 512000
99206781 jamil_cse E2 Nov. 22, 2020, 1:13 a.m. OK GNU C++17 TESTS 143 592 4096000
99184771 bensanhuan E2 Nov. 21, 2020, 4:40 p.m. OK GNU C++17 TESTS 143 607 3584000
99203543 PurpleCrayon E2 Nov. 21, 2020, 10:37 p.m. OK GNU C++17 TESTS 143 608 1126400
99220396 zkdxl E2 Nov. 22, 2020, 5:57 a.m. OK GNU C++17 TESTS 143 608 12083200
99179575 yungBaSe E2 Nov. 21, 2020, 4:24 p.m. OK GNU C++17 TESTS 143 623 819200
99205401 D4nnyLee E2 Nov. 22, 2020, 12:09 a.m. OK GNU C++17 TESTS 143 623 819200
99184365 Sali.adel E2 Nov. 21, 2020, 4:38 p.m. OK GNU C++17 TESTS 143 623 1024000
99195008 tran0826_1 E2 Nov. 21, 2020, 7:29 p.m. OK GNU C++17 TESTS 143 623 1638400
99205263 m.hasan01 E2 Nov. 22, 2020, 12:01 a.m. OK GNU C++17 (64) TESTS 143 576 3481600
99217953 Clu3l3ss E2 Nov. 22, 2020, 5:22 a.m. OK GNU C++17 (64) TESTS 143 592 819200
99217902 FadingStar E2 Nov. 22, 2020, 5:22 a.m. OK GNU C++17 (64) TESTS 143 592 819200
99202963 AceKing E2 Nov. 21, 2020, 10:15 p.m. OK GNU C++17 (64) TESTS 143 592 1024000
99210117 Shirorz E2 Nov. 22, 2020, 2:49 a.m. OK GNU C++17 (64) TESTS 143 592 1638400
99213696 kresna E2 Nov. 22, 2020, 4:13 a.m. OK GNU C++17 (64) TESTS 143 592 2457600
99182657 Capsize E2 Nov. 21, 2020, 4:33 p.m. OK GNU C++17 (64) TESTS 143 607 307200
99200831 izlyforever E2 Nov. 21, 2020, 9:11 p.m. OK GNU C++17 (64) TESTS 143 608 512000
99217833 FadingStar E2 Nov. 22, 2020, 5:21 a.m. OK GNU C++17 (64) TESTS 143 608 819200
99186678 Shirakami E2 Nov. 21, 2020, 4:45 p.m. OK GNU C++17 (64) TESTS 143 608 2969600
99209992 uwi E2 Nov. 22, 2020, 2:46 a.m. OK Java 11 TESTS 143 1668 0
99220501 mphillotry E2 Nov. 22, 2020, 5:59 a.m. OK Java 11 TESTS 143 2511 0
99194669 hiromi_ayase E2 Nov. 21, 2020, 7:26 p.m. OK Java 11 TESTS 143 2620 0
99186682 blackBird E2 Nov. 21, 2020, 4:45 p.m. OK Java 11 TESTS 143 2823 0
99193864 Dukkha E2 Nov. 21, 2020, 7:22 p.m. OK Java 11 TESTS 143 2854 409600
99203990 b0bl0blaw E2 Nov. 21, 2020, 10:56 p.m. OK Java 11 TESTS 143 2901 0
99206325 ijxjdjd E2 Nov. 22, 2020, 12:54 a.m. OK Java 8 TESTS 143 2324 0
99212343 MagentaCobra E2 Nov. 22, 2020, 3:45 a.m. OK Java 8 TESTS 143 2402 0
99212416 MagentaCobra E2 Nov. 22, 2020, 3:47 a.m. OK Java 8 TESTS 143 2417 0
99212473 MagentaCobra E2 Nov. 22, 2020, 3:48 a.m. OK Java 8 TESTS 143 2496 0
99195602 Katushechka E2 Nov. 21, 2020, 7:35 p.m. OK Java 8 TESTS 143 2496 0
99181827 rabaiBomkarBittalBang E2 Nov. 21, 2020, 4:31 p.m. OK Java 8 TESTS 143 2511 0
99212374 MagentaCobra E2 Nov. 22, 2020, 3:46 a.m. OK Java 8 TESTS 143 2558 0
99199493 partizan22 E2 Nov. 21, 2020, 8:38 p.m. OK Java 8 TESTS 143 3322 0
99196308 amelentev E2 Nov. 21, 2020, 7:43 p.m. OK Kotlin TESTS 143 1138 15769600
99194710 Scotty_pwnz E2 Nov. 21, 2020, 7:27 p.m. OK Kotlin TESTS 143 1154 1228800
99203974 Tlatoani E2 Nov. 21, 2020, 10:55 p.m. OK Kotlin TESTS 143 1184 1228800
99204740 koboshi E2 Nov. 21, 2020, 11:33 p.m. OK Kotlin TESTS 143 2355 2560000
99205563 sylvyrfysh E2 Nov. 22, 2020, 12:18 a.m. OK Kotlin TESTS 143 2527 17817600
99199572 SpinDOS E2 Nov. 21, 2020, 8:40 p.m. OK Mono C# TESTS 143 1185 10137600
99196789 Makarov E2 Nov. 21, 2020, 7:49 p.m. OK MS C++ TESTS 143 904 8499200
99182937 pichulia E2 Nov. 21, 2020, 4:34 p.m. OK MS C++ 2017 TESTS 143 717 2662400
99194517 Triss_Merigold E2 Nov. 21, 2020, 7:25 p.m. OK MS C++ 2017 TESTS 143 904 2457600
99203369 usmanov.ie E2 Nov. 21, 2020, 10:29 p.m. OK MS C++ 2017 TESTS 143 1014 2457600
99183661 fancy_lettuce E2 Nov. 21, 2020, 4:36 p.m. OK .NET Core C# TESTS 143 904 19968000
99217187 TheVan E2 Nov. 22, 2020, 5:11 a.m. OK PyPy 3 TESTS 143 1716 14438400
99217623 2019ucp1350 E2 Nov. 22, 2020, 5:18 a.m. OK PyPy 3 TESTS 143 1871 13107200
99203993 damirych E2 Nov. 21, 2020, 10:56 p.m. OK PyPy 3 TESTS 143 2245 13824000
99198820 titia E2 Nov. 21, 2020, 8:24 p.m. OK PyPy 3 TESTS 143 2370 9625600
99213207 nasuo E2 Nov. 22, 2020, 4:05 a.m. OK PyPy 3 TESTS 143 2479 11264000
99210253 Contna E2 Nov. 22, 2020, 2:52 a.m. OK PyPy 3 TESTS 143 2526 9318400
99188265 cocopalm E2 Nov. 21, 2020, 4:48 p.m. OK PyPy 3 TESTS 143 2527 13312000
99216915 TheVan E2 Nov. 22, 2020, 5:07 a.m. OK PyPy 3 TESTS 143 2542 13824000
99195249 Kira_1234 E2 Nov. 21, 2020, 7:31 p.m. OK PyPy 3 TESTS 143 2714 11776000
99195698 ulyabelyaeva E2 Nov. 21, 2020, 7:36 p.m. OK PyPy 3 TESTS 143 2963 10342400
99212975 nwi E2 Nov. 22, 2020, 4 a.m. OK Python 2 TESTS 143 1247 6144000
99214884 sh1194 E2 Nov. 22, 2020, 4:34 a.m. OK Python 3 TESTS 143 1964 5017600
99218527 nishank.suresh E2 Nov. 22, 2020, 5:31 a.m. OK Python 3 TESTS 143 2090 3993600
99215009 sh1194 E2 Nov. 22, 2020, 4:36 a.m. OK Python 3 TESTS 143 2105 5017600
99200485 optozorax E2 Nov. 21, 2020, 9:02 p.m. OK Rust TESTS 143 1247 3891200

remove filters

Back to search problems