Codeforces Round 922 (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
1918 Codeforces Round 922 (Div. 2) FINISHED False 7800 30554663 Jan. 30, 2024, 2:35 p.m.

Problems

Solved$
Index
Name
Type
Tags
Community Tag
Rating
( 1794 ) E ace5 and Task Order PROGRAMMING binary search divide and conquer implementation interactive probabilities sortings

B'This is an interactive problem! In the new round, there were n tasks with difficulties from 1 to n . The coordinator, who decided to have the first round with tasks in unsorted order of difficulty, rearranged the tasks, resulting in a permutation of difficulties from 1 to n . After that, the coordinator challenged ace5 to guess the permutation in the following way. Initially, the coordinator chooses a number x from 1 to n . ace5 can make queries of the form: ? i . The answer will be: The task for ace5 is to guess the permutation in no more than 40n queries. Since ace5 is too busy writing the announcement, he has entrusted this task to you. The first line contains a single integer t ( 1 <= q t <= q 1000 ) -- the number of test cases. The interaction between your program and the jury 's program begins with reading a positive integer n ( 1 <= q n <= q 2000 ) -- the length of the hidden permutation. To make a query, output a line in the format "? i", where 1 <= q i <= q n . As an answer, you will receive: You can make no more than 40n queries. To output the answer, you need to print "! a_1 a_2 ... a_n", where 1 <= q a_i <= q n , and all of them are distinct. Outputting the answer does not count as a query. If your program makes more than 40n queries for one test case, or makes an invalid query, then the response to the query will be -1. After receiving such a response, your program should immediately terminate to receive the verdict Wrong Answer. Otherwise, it may receive any other verdict. After outputting a query, do not forget to print a newline and flush the output buffer. Otherwise, you will receive the verdict Presentation Error. To flush the buffer, use: It is guaranteed that the sum of n over all test cases does not exceed 2000 . The interactor in this problem is not adaptive. Hacks: To make a hack, use the following format: The first line '...

Tutorials

Codeforces Round #922 (Div. 2) Editorial

Submissions

Submission Id
Author(s)
Index
Submitted
Verdict
Language
Test Set
Tests Passed
Time taken (ms)
Memory Consumed (bytes)
Tags
Rating
244173432 Gassa E Jan. 30, 2024, 8:50 p.m. OK D TESTS 26 717 6348800
244162624 rainboy E Jan. 30, 2024, 7:06 p.m. OK GNU C11 TESTS 26 655 0
244144918 SunShine11 E Jan. 30, 2024, 4:44 p.m. OK GNU C++17 TESTS 26 295 409600
244167486 CandyOre E Jan. 30, 2024, 7:46 p.m. OK GNU C++17 TESTS 26 358 204800
244164513 CandyOre E Jan. 30, 2024, 7:20 p.m. OK GNU C++17 TESTS 26 405 204800
244193098 unlock E Jan. 31, 2024, 2:56 a.m. OK GNU C++17 TESTS 26 405 307200
244142467 LOOP0 E Jan. 30, 2024, 4:38 p.m. OK GNU C++17 TESTS 26 405 11980800
244207084 aditi062519 E Jan. 31, 2024, 5:36 a.m. OK GNU C++17 TESTS 26 420 204800
244177159 adrian_bolt E Jan. 30, 2024, 9:41 p.m. OK GNU C++17 TESTS 26 436 307200
244140970 myheartwaing E Jan. 30, 2024, 4:34 p.m. OK GNU C++17 TESTS 26 467 0
244159788 Mirbek E Jan. 30, 2024, 6:45 p.m. OK GNU C++17 TESTS 26 467 204800
244208246 POeticPotato E Jan. 31, 2024, 5:46 a.m. OK GNU C++17 TESTS 26 467 614400
244201029 daoqi E Jan. 31, 2024, 4:42 a.m. OK GNU C++17 (64) TESTS 26 280 56115200
244201123 daoqi E Jan. 31, 2024, 4:43 a.m. OK GNU C++17 (64) TESTS 26 295 0
244201222 daoqi E Jan. 31, 2024, 4:45 a.m. OK GNU C++17 (64) TESTS 26 295 102400
244201279 daoqi E Jan. 31, 2024, 4:45 a.m. OK GNU C++17 (64) TESTS 26 296 102400
244192511 Syrus E Jan. 31, 2024, 2:48 a.m. OK GNU C++17 (64) TESTS 26 327 102400
244201061 daoqi E Jan. 31, 2024, 4:42 a.m. OK GNU C++17 (64) TESTS 26 358 56115200
244156849 21cs01033 E Jan. 30, 2024, 6:28 p.m. OK GNU C++17 (64) TESTS 26 420 102400
244187333 Romy67 E Jan. 31, 2024, 1:24 a.m. OK GNU C++17 (64) TESTS 26 436 102400
244195072 edisnimorF E Jan. 31, 2024, 3:22 a.m. OK GNU C++17 (64) TESTS 26 451 102400
244175462 toniskrijelj E Jan. 30, 2024, 9:16 p.m. OK GNU C++17 (64) TESTS 26 451 4300800
244145351 opPO E Jan. 30, 2024, 4:44 p.m. OK GNU C++20 (64) TESTS 26 389 102400
244184953 jh01533 E Jan. 31, 2024, 12:36 a.m. OK GNU C++20 (64) TESTS 26 389 102400
244157817 Keli-add E Jan. 30, 2024, 6:33 p.m. OK GNU C++20 (64) TESTS 26 389 3993600
244144850 jh01533 E Jan. 30, 2024, 4:44 p.m. OK GNU C++20 (64) TESTS 26 405 102400
244157521 Kawaii E Jan. 30, 2024, 6:32 p.m. OK GNU C++20 (64) TESTS 26 405 8089600
244189489 Prieved E Jan. 31, 2024, 2:03 a.m. OK GNU C++20 (64) TESTS 26 421 102400
244162264 Airths E Jan. 30, 2024, 7:03 p.m. OK GNU C++20 (64) TESTS 26 421 102400
244200442 propane E Jan. 31, 2024, 4:34 a.m. OK GNU C++20 (64) TESTS 26 436 102400
244164018 shiven E Jan. 30, 2024, 7:16 p.m. OK GNU C++20 (64) TESTS 26 436 102400
244163057 tonegawa E Jan. 30, 2024, 7:08 p.m. OK GNU C++20 (64) TESTS 26 436 102400
244154239 FierteDeCeylan E Jan. 30, 2024, 6:18 p.m. OK Java 21 TESTS 26 1528 921600
244161416 profchi E Jan. 30, 2024, 6:56 p.m. OK Java 21 TESTS 26 1964 512000
244199314 yvbf E Jan. 31, 2024, 4:19 a.m. OK Java 8 TESTS 26 1372 0
244188684 cc4414 E Jan. 31, 2024, 1:50 a.m. OK Java 8 TESTS 26 1949 0
244190615 cc4414 E Jan. 31, 2024, 2:19 a.m. OK Java 8 TESTS 26 1980 0
244193446 wangchaohui E Jan. 31, 2024, 3:01 a.m. OK Kotlin 1.9 TESTS 26 1840 1126400
244144657 misorin E Jan. 30, 2024, 4:43 p.m. OK PyPy 3-64 TESTS 26 1060 10035200
244189947 hxu10 E Jan. 31, 2024, 2:10 a.m. OK PyPy 3-64 TESTS 26 1778 10649600
244177317 Quick-One E Jan. 30, 2024, 9:43 p.m. OK PyPy 3-64 TESTS 26 1840 10956800
244138332 marko312 E Jan. 30, 2024, 4:28 p.m. OK PyPy 3-64 TESTS 26 1887 11161600
244161985 cybsbbb E Jan. 30, 2024, 7:01 p.m. OK PyPy 3-64 TESTS 26 1903 10649600
244176875 Quick-One E Jan. 30, 2024, 9:36 p.m. OK PyPy 3-64 TESTS 26 1903 10956800
244137401 SeptaCube E Jan. 30, 2024, 4:25 p.m. OK PyPy 3-64 TESTS 26 1903 11468800
244177342 Quick-One E Jan. 30, 2024, 9:44 p.m. OK PyPy 3-64 TESTS 26 1918 10649600
244177851 Quick-One E Jan. 30, 2024, 9:52 p.m. OK PyPy 3-64 TESTS 26 1934 11059200
244142271 thahn106 E Jan. 30, 2024, 4:38 p.m. OK PyPy 3-64 TESTS 26 1934 22630400
244182317 Shirotsume E Jan. 30, 2024, 11:33 p.m. OK Python 3 TESTS 26 1653 1228800
244154799 titia E Jan. 30, 2024, 6:19 p.m. OK Python 3 TESTS 26 1669 716800
244143398 andrey.m E Jan. 30, 2024, 4:41 p.m. OK Rust 2021 TESTS 26 1075 307200

remove filters

Back to search problems