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
( 4480 ) E1 Bitwise Queries (Easy 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+2 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
99215350 GOOGLE_ E1 Nov. 22, 2020, 4:42 a.m. OK GNU C++11 TESTS 143 374 3993600
99211335 lanChe E1 Nov. 22, 2020, 3:21 a.m. OK GNU C++11 TESTS 143 389 819200
99206115 TheBlueSnake E1 Nov. 22, 2020, 12:44 a.m. OK GNU C++11 TESTS 143 405 409600
99205653 TYGZ E1 Nov. 22, 2020, 12:21 a.m. OK GNU C++11 TESTS 143 405 1228800
99212271 csawyer E1 Nov. 22, 2020, 3:43 a.m. OK GNU C++11 TESTS 143 420 819200
99201394 OMG_wc E1 Nov. 21, 2020, 9:25 p.m. OK GNU C++11 TESTS 143 420 819200
99212076 csawyer E1 Nov. 22, 2020, 3:39 a.m. OK GNU C++11 TESTS 143 420 819200
99187670 KarmenYang E1 Nov. 21, 2020, 4:47 p.m. OK GNU C++11 TESTS 143 420 12390400
99183884 zhangjianjuncd E1 Nov. 21, 2020, 4:37 p.m. OK GNU C++11 TESTS 143 420 16691200
99217426 wzl19371 E1 Nov. 22, 2020, 5:15 a.m. OK GNU C++11 TESTS 143 421 204800
99202849 Hoax. E1 Nov. 21, 2020, 10:10 p.m. OK GNU C++14 TESTS 143 592 1228800
99194557 nilesh_sahu E1 Nov. 21, 2020, 7:26 p.m. OK GNU C++14 TESTS 143 607 307200
99207612 kmjp E1 Nov. 22, 2020, 1:41 a.m. OK GNU C++14 TESTS 143 607 2560000
99216233 Dean_student E1 Nov. 22, 2020, 4:56 a.m. OK GNU C++14 TESTS 143 608 512000
99207160 vjudge1 E1 Nov. 22, 2020, 1:26 a.m. OK GNU C++14 TESTS 143 608 512000
99211027 Tech13Nocturne E1 Nov. 22, 2020, 3:13 a.m. OK GNU C++14 TESTS 143 623 307200
99207094 tzxydby E1 Nov. 22, 2020, 1:24 a.m. OK GNU C++14 TESTS 143 623 512000
99185949 CraniXort E1 Nov. 21, 2020, 4:43 p.m. OK GNU C++14 TESTS 143 624 1331200
99180007 ardan E1 Nov. 21, 2020, 4:26 p.m. OK GNU C++14 TESTS 143 638 4096000
99199723 RaviVK E1 Nov. 21, 2020, 8:43 p.m. OK GNU C++14 TESTS 143 639 307200
99203188 GersonVinicius E1 Nov. 21, 2020, 10:22 p.m. OK GNU C++17 TESTS 143 607 307200
99187347 LeoRiether E1 Nov. 21, 2020, 4:46 p.m. OK GNU C++17 TESTS 143 608 307200
99180404 Manvendra256 E1 Nov. 21, 2020, 4:27 p.m. OK GNU C++17 TESTS 143 608 307200
99185779 flexokek E1 Nov. 21, 2020, 4:42 p.m. OK GNU C++17 TESTS 143 608 307200
99198715 ManuelLoaiza E1 Nov. 21, 2020, 8:22 p.m. OK GNU C++17 TESTS 143 608 2252800
99179681 FiveAtomTree E1 Nov. 21, 2020, 4:25 p.m. OK GNU C++17 TESTS 143 608 2560000
99185260 heyongxin233 E1 Nov. 21, 2020, 4:41 p.m. OK GNU C++17 TESTS 143 608 3276800
99196979 2Nor22 E1 Nov. 21, 2020, 7:52 p.m. OK GNU C++17 TESTS 143 608 16588800
99187803 uryuuu E1 Nov. 21, 2020, 4:47 p.m. OK GNU C++17 TESTS 143 608 24064000
99212666 kaffuchino E1 Nov. 22, 2020, 3:53 a.m. OK GNU C++17 TESTS 143 608 25190400
99219545 akifpathan E1 Nov. 22, 2020, 5:46 a.m. OK GNU C++17 (64) TESTS 143 561 307200
99218525 little_lion E1 Nov. 22, 2020, 5:31 a.m. OK GNU C++17 (64) TESTS 143 561 512000
99207005 ratmaylakhongcoai E1 Nov. 22, 2020, 1:22 a.m. OK GNU C++17 (64) TESTS 143 561 819200
99205952 Nson E1 Nov. 22, 2020, 12:37 a.m. OK GNU C++17 (64) TESTS 143 561 3174400
99186012 SchoolStoryTeller E1 Nov. 21, 2020, 4:43 p.m. OK GNU C++17 (64) TESTS 143 577 1228800
99181294 Clone343 E1 Nov. 21, 2020, 4:29 p.m. OK GNU C++17 (64) TESTS 143 577 5734400
99209926 Clu3l3ss E1 Nov. 22, 2020, 2:45 a.m. OK GNU C++17 (64) TESTS 143 592 307200
99207277 nullmn E1 Nov. 22, 2020, 1:30 a.m. OK GNU C++17 (64) TESTS 143 592 307200
99207599 arwaeystoamneg E1 Nov. 22, 2020, 1:40 a.m. OK GNU C++17 (64) TESTS 143 592 512000
99217947 Clu3l3ss E1 Nov. 22, 2020, 5:22 a.m. OK GNU C++17 (64) TESTS 143 592 819200
99188793 sf14t E1 Nov. 21, 2020, 4:49 p.m. OK Java 11 TESTS 143 1840 0
99194559 mennafadali E1 Nov. 21, 2020, 7:26 p.m. OK Java 11 TESTS 143 2526 0
99193971 chris_11 E1 Nov. 21, 2020, 7:23 p.m. OK Java 11 TESTS 143 2651 0
99183587 blackBird E1 Nov. 21, 2020, 4:36 p.m. OK Java 11 TESTS 143 2651 0
99187482 nick_301 E1 Nov. 21, 2020, 4:47 p.m. OK Java 11 TESTS 143 2698 0
99196015 hiromi_ayase E1 Nov. 21, 2020, 7:39 p.m. OK Java 11 TESTS 143 2869 0
99197640 bobib E1 Nov. 21, 2020, 8:02 p.m. OK Java 11 TESTS 143 2869 0
99203975 b0bl0blaw E1 Nov. 21, 2020, 10:55 p.m. OK Java 11 TESTS 143 2870 0
99188457 Dukkha E1 Nov. 21, 2020, 4:49 p.m. OK Java 11 TESTS 143 2885 1126400
99182991 Apfeloxid E1 Nov. 21, 2020, 4:34 p.m. OK Java 11 TESTS 143 2901 614400
99200599 subhamdtu E1 Nov. 21, 2020, 9:05 p.m. OK Java 8 TESTS 143 2292 0
99202790 lzhang E1 Nov. 21, 2020, 10:08 p.m. OK Java 8 TESTS 143 2495 0
99180813 rabaiBomkarBittalBang E1 Nov. 21, 2020, 4:28 p.m. OK Java 8 TESTS 143 2526 0
99200841 godxpunk E1 Nov. 21, 2020, 9:11 p.m. OK Java 8 TESTS 143 2573 0
99195381 Katushechka E1 Nov. 21, 2020, 7:33 p.m. OK Java 8 TESTS 143 2636 0
99212631 RichardBot7000 E1 Nov. 22, 2020, 3:52 a.m. OK Java 8 TESTS 143 2651 0
99215091 Abhik1998 E1 Nov. 22, 2020, 4:38 a.m. OK Java 8 TESTS 143 2854 0
99195975 martins E1 Nov. 21, 2020, 7:39 p.m. OK Java 8 TESTS 143 3540 0
99195234 koper E1 Nov. 21, 2020, 7:31 p.m. OK Kotlin TESTS 143 967 2150400
99196046 amelentev E1 Nov. 21, 2020, 7:40 p.m. OK Kotlin TESTS 143 1107 15769600
99203986 Tlatoani E1 Nov. 21, 2020, 10:56 p.m. OK Kotlin TESTS 143 1138 1228800
99195765 Scotty_pwnz E1 Nov. 21, 2020, 7:37 p.m. OK Kotlin TESTS 143 1372 1126400
99203387 koboshi E1 Nov. 21, 2020, 10:30 p.m. OK Kotlin TESTS 143 2417 1740800
99204728 koboshi E1 Nov. 21, 2020, 11:32 p.m. OK Kotlin TESTS 143 2448 2764800
99205520 sylvyrfysh E1 Nov. 22, 2020, 12:16 a.m. OK Kotlin TESTS 143 2604 18124800
99200149 SpinDOS E1 Nov. 21, 2020, 8:53 p.m. OK Mono C# TESTS 143 1231 6860800
99196740 Makarov E1 Nov. 21, 2020, 7:49 p.m. OK MS C++ TESTS 143 889 8499200
99182800 pichulia E1 Nov. 21, 2020, 4:34 p.m. OK MS C++ 2017 TESTS 143 763 2662400
99185764 Triss_Merigold E1 Nov. 21, 2020, 4:42 p.m. OK MS C++ 2017 TESTS 143 889 307200
99183073 russian_proger E1 Nov. 21, 2020, 4:35 p.m. OK MS C++ 2017 TESTS 143 936 307200
99198582 dominotim E1 Nov. 21, 2020, 8:19 p.m. OK MS C++ 2017 TESTS 143 951 1843200
99196232 usmanov.ie E1 Nov. 21, 2020, 7:42 p.m. OK MS C++ 2017 TESTS 143 951 2457600
99194257 MyEighthName E1 Nov. 21, 2020, 7:24 p.m. OK .NET Core C# TESTS 143 795 6041600
99183758 terry_u16 E1 Nov. 21, 2020, 4:37 p.m. OK .NET Core C# TESTS 143 810 9216000
99180445 kichi2004 E1 Nov. 21, 2020, 4:27 p.m. OK .NET Core C# TESTS 143 826 6963200
99183447 fancy_lettuce E1 Nov. 21, 2020, 4:36 p.m. OK .NET Core C# TESTS 143 982 19968000
99194902 tumaryui E1 Nov. 21, 2020, 7:28 p.m. OK .NET Core C# TESTS 143 997 5017600
99217078 TheVan E1 Nov. 22, 2020, 5:09 a.m. OK PyPy 3 TESTS 143 1591 14131200
99217647 2019ucp1350 E1 Nov. 22, 2020, 5:18 a.m. OK PyPy 3 TESTS 143 1825 13004800
99198131 coder_sounak E1 Nov. 21, 2020, 8:11 p.m. OK PyPy 3 TESTS 143 1825 15257600
99198324 coder_sounak E1 Nov. 21, 2020, 8:14 p.m. OK PyPy 3 TESTS 143 1918 14848000
99186529 manhar E1 Nov. 21, 2020, 4:44 p.m. OK PyPy 3 TESTS 143 2011 9420800
99182941 marroncastle E1 Nov. 21, 2020, 4:34 p.m. OK PyPy 3 TESTS 143 2262 8396800
99203843 damirych E1 Nov. 21, 2020, 10:50 p.m. OK PyPy 3 TESTS 143 2292 13926400
99202705 atg_coder27 E1 Nov. 21, 2020, 10:05 p.m. OK PyPy 3 TESTS 143 2323 8806400
99218159 ghoshashis545 E1 Nov. 22, 2020, 5:25 a.m. OK PyPy 3 TESTS 143 2339 9625600
99200127 titia E1 Nov. 21, 2020, 8:53 p.m. OK PyPy 3 TESTS 143 2371 9523200
99213582 ioldos E1 Nov. 22, 2020, 4:12 a.m. OK Python 3 TESTS 143 1965 2355200
99181343 qazz625 E1 Nov. 21, 2020, 4:29 p.m. OK Python 3 TESTS 143 2137 2764800
99185655 mkawa2 E1 Nov. 21, 2020, 4:42 p.m. OK Python 3 TESTS 143 2168 2457600
99214796 sh1194 E1 Nov. 22, 2020, 4:32 a.m. OK Python 3 TESTS 143 2261 2457600
99186812 zheland E1 Nov. 21, 2020, 4:45 p.m. OK Rust TESTS 143 1263 512000
99200498 optozorax E1 Nov. 21, 2020, 9:02 p.m. OK Rust TESTS 143 1294 3891200
99181121 GeoffreyY E1 Nov. 21, 2020, 4:29 p.m. OK Rust TESTS 143 1309 512000

remove filters

Back to search problems