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 |
---|---|---|---|---|---|---|
1584 | Technocup 2022 - Elimination Round 2 | FINISHED | False | 8100 | 100310063 | Nov. 14, 2021, 6:05 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 3730 ) | D | Guess the Permutation | PROGRAMMING | binary search combinatorics interactive math | 2000 |
B'This is an interactive problem. Jury initially had a sequence a of length n , such that a_i = i . The jury chose three integers i , j , k , such that 1 <= q i < j < k <= q n , j - i > 1 . After that, Jury reversed subsegments [i, j - 1] and [j, k] of the sequence a . Reversing a subsegment [l, r] of the sequence a means reversing the order of elements a_l, a_{l+1}, ldots, a_r in the sequence, i. e. a_l is swapped with a_r , a_{l+1} is swapped with a_{r-1} , etc. You are given the number n and you should find i , j , k after asking some questions. In one question you can choose two integers l and r ( 1 <= q l <= q r <= q n ) and ask the number of inversions on the subsegment [l, r] of the sequence a . You will be given the number of pairs (i, j) such that l <= q i < j <= q r , and a_i > a_j . Find the chosen numbers i , j , k after at most 40 questions. The numbers i , j , and k are fixed before the start of your program and do not depend on your queries. Each test consists of multiple test cases. The first line contains a single integer t ( 1 <= q t <= q 100 ) -- the number of test cases. Description of the test cases follows. The single line of each test case contains a single integer n ( 4 <= q n <= q 10^9 ). After reading it you should start an interaction process by asking questions for that test case. After giving an answer you should: To ask number of inversions on a subsegment [l, r] , print "? l r", where ( 1 <= q l <= q r <= q n ). You can ask at most 40 questions in each test case. As a result you should read a single integer x . To give the answer, print "! i j k", where i , j , k are the numbers you found. You should continue solving the next test cases or terminate the program after that.'... |
Editorial for Technocup 2022 — Elimination Round 2 and Codeforces Round #755 (Div. 1, Div. 2) |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
135531438 | zxjk | D | Nov. 15, 2021, 1:12 a.m. | OK | GNU C++14 | TESTS | 22 | 31 | 0 | 2000 | |
135556334 | SqrtSecond | D | Nov. 15, 2021, 4:02 a.m. | OK | GNU C++14 | TESTS | 22 | 46 | 0 | 2000 | |
135533479 | anandjaiswal | D | Nov. 15, 2021, 2:20 a.m. | OK | GNU C++14 | TESTS | 22 | 46 | 0 | 2000 | |
135531381 | 2018ty34 | D | Nov. 15, 2021, 1:10 a.m. | OK | GNU C++14 | TESTS | 22 | 46 | 0 | 2000 | |
135508737 | sultan_01 | D | Nov. 14, 2021, 6:45 p.m. | OK | GNU C++14 | TESTS | 22 | 46 | 0 | 2000 | |
135480542 | FANAT_MORGENSHTERNA | D | Nov. 14, 2021, 2:26 p.m. | OK | GNU C++14 | TESTS | 21 | 46 | 0 | 2000 | |
135398348 | Michailus | D | Nov. 14, 2021, 9:16 a.m. | OK | GNU C++14 | TESTS | 21 | 46 | 2662400 | 2000 | |
135560629 | AC_in_the_dark | D | Nov. 15, 2021, 5:38 a.m. | OK | GNU C++14 | TESTS | 22 | 61 | 0 | 2000 | |
135505508 | ayushman4321 | D | Nov. 14, 2021, 5:58 p.m. | OK | GNU C++14 | TESTS | 22 | 61 | 0 | 2000 | |
135433449 | big_turkey172 | D | Nov. 14, 2021, 1:52 p.m. | OK | GNU C++14 | TESTS | 21 | 61 | 819200 | 2000 | |
135557878 | Maksim_P | D | Nov. 15, 2021, 4:40 a.m. | OK | GNU C++17 | TESTS | 22 | 31 | 0 | 2000 | |
135553902 | qiuyun | D | Nov. 15, 2021, 2:55 a.m. | OK | GNU C++17 | TESTS | 22 | 31 | 0 | 2000 | |
135395386 | letsolum | D | Nov. 14, 2021, 8:56 a.m. | OK | GNU C++17 | TESTS | 21 | 31 | 1024000 | 2000 | |
135392714 | Android_2323 | D | Nov. 14, 2021, 8:19 a.m. | OK | GNU C++17 | TESTS | 21 | 31 | 1024000 | 2000 | |
135391755 | sinfillo | D | Nov. 14, 2021, 8:16 a.m. | OK | GNU C++17 | TESTS | 21 | 31 | 1024000 | 2000 | |
135383169 | Arseniy_04 | D | Nov. 14, 2021, 7:46 a.m. | OK | GNU C++17 | TESTS | 21 | 31 | 1024000 | 2000 | |
135499722 | procodgok | D | Nov. 14, 2021, 4:46 p.m. | OK | GNU C++17 | TESTS | 22 | 31 | 7987200 | 2000 | |
135561642 | ujjwal7201 | D | Nov. 15, 2021, 5:56 a.m. | OK | GNU C++17 | TESTS | 22 | 46 | 0 | 2000 | |
135554067 | Meiji | D | Nov. 15, 2021, 3 a.m. | OK | GNU C++17 | TESTS | 22 | 46 | 0 | 2000 | |
135519659 | the_stone_dawg | D | Nov. 14, 2021, 11:05 p.m. | OK | GNU C++17 | TESTS | 22 | 46 | 0 | 2000 | |
135502388 | lbm364dl | D | Nov. 14, 2021, 5:18 p.m. | OK | GNU C++17 (64) | TESTS | 22 | 31 | 0 | 2000 | |
135417921 | pluto_ish | D | Nov. 14, 2021, 12:14 p.m. | OK | GNU C++17 (64) | TESTS | 21 | 31 | 1228800 | 2000 | |
135516827 | Kaichengxdd | D | Nov. 14, 2021, 9:24 p.m. | OK | GNU C++17 (64) | TESTS | 22 | 46 | 0 | 2000 | |
135402921 | lesha_ufo | D | Nov. 14, 2021, 9:55 a.m. | OK | GNU C++17 (64) | TESTS | 21 | 46 | 1228800 | 2000 | |
135376740 | knifeman | D | Nov. 14, 2021, 7:23 a.m. | OK | GNU C++17 (64) | TESTS | 21 | 46 | 1228800 | 2000 | |
135367751 | artem_safin67 | D | Nov. 14, 2021, 6:57 a.m. | OK | GNU C++17 (64) | TESTS | 21 | 46 | 1228800 | 2000 | |
135362629 | alegsandyr | D | Nov. 14, 2021, 6:45 a.m. | OK | GNU C++17 (64) | TESTS | 21 | 46 | 1228800 | 2000 | |
135356731 | crazyilian | D | Nov. 14, 2021, 6:33 a.m. | OK | GNU C++17 (64) | TESTS | 21 | 46 | 1228800 | 2000 | |
135516728 | Kaichengxdd | D | Nov. 14, 2021, 9:22 p.m. | OK | GNU C++17 (64) | TESTS | 22 | 61 | 0 | 2000 | |
135373869 | aalakhtin | D | Nov. 14, 2021, 7:14 a.m. | OK | GNU C++17 (64) | TESTS | 21 | 61 | 1228800 | 2000 | |
135424547 | _swet | D | Nov. 14, 2021, 1:13 p.m. | OK | GNU C++20 (64) | TESTS | 21 | 30 | 0 | 2000 | |
135386372 | sevlll | D | Nov. 14, 2021, 7:57 a.m. | OK | GNU C++20 (64) | TESTS | 21 | 31 | 1228800 | 2000 | |
135396418 | Glinomes_3000 | D | Nov. 14, 2021, 9:02 a.m. | OK | GNU C++20 (64) | TESTS | 21 | 46 | 1228800 | 2000 | |
135385050 | igorfardoc | D | Nov. 14, 2021, 7:53 a.m. | OK | GNU C++20 (64) | TESTS | 21 | 46 | 1228800 | 2000 | |
135506059 | CurB | D | Nov. 14, 2021, 6:06 p.m. | OK | GNU C++20 (64) | TESTS | 22 | 61 | 0 | 2000 | |
135371502 | Grandmaster_gang | D | Nov. 14, 2021, 7:07 a.m. | OK | GNU C++20 (64) | TESTS | 21 | 61 | 1228800 | 2000 | |
135396268 | Glinomes_3000 | D | Nov. 14, 2021, 9:01 a.m. | OK | GNU C++20 (64) | TESTS | 21 | 62 | 1228800 | 2000 | |
135359275 | turmax | D | Nov. 14, 2021, 6:38 a.m. | OK | GNU C++20 (64) | TESTS | 21 | 62 | 1228800 | 2000 | |
135557113 | armish2.0 | D | Nov. 15, 2021, 4:22 a.m. | OK | GNU C++20 (64) | TESTS | 22 | 62 | 3174400 | 2000 | |
135532796 | connect_kgp | D | Nov. 15, 2021, 1:59 a.m. | OK | GNU C++20 (64) | TESTS | 22 | 62 | 3174400 | 2000 | |
135379310 | Cat8ra | D | Nov. 14, 2021, 7:31 a.m. | OK | MS C++ 2017 | TESTS | 21 | 93 | 1126400 | 2000 | |
135510644 | you1234 | D | Nov. 14, 2021, 7:17 p.m. | OK | PyPy 3 | TESTS | 22 | 311 | 6451200 | 2000 | |
135383065 | LLDI | D | Nov. 14, 2021, 7:45 a.m. | OK | PyPy 3-64 | TESTS | 21 | 296 | 37171200 | 2000 | |
135481692 | andreyDagger | D | Nov. 14, 2021, 2:37 p.m. | OK | PyPy 3-64 | TESTS | 21 | 530 | 146432000 | 2000 | |
135514458 | xyxoro | D | Nov. 14, 2021, 8:31 p.m. | OK | Python 3 | TESTS | 22 | 140 | 204800 | 2000 |
Back to search problems