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 |
---|---|---|---|---|---|---|
1562 | Codeforces Round 741 (Div. 2) | FINISHED | False | 8100 | 107277863 | Aug. 26, 2021, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 410 ) | F | Tubular Bells | PROGRAMMING | interactive math number theory probabilities |
B"Do you know what tubular bells are? They are a musical instrument made up of cylindrical metal tubes. In an orchestra, tubular bells are used to mimic the ringing of bells. Mike has tubular bells, too! They consist of n tubes, and each of the tubes has a length that can be expressed by a integer from l to r inclusive. It is clear that the lengths of all the tubes are different (it makes no sense to make the same tubes). It is also known that r-l+1 = n . Formally, we can say that Mike's tubular bells are described by a permutation a of length n that contains all numbers from l to r inclusive, with a_i denoting the length of the i -th tube. You are offered an interesting task: to guess what Mike's instrument looks like. Simply, you must guess the permutation. Mike won't tell you l or r . He will only tell you n , and will allow you to ask no more than n + 5000 queries. In each query, you name two positive integers x , y such that 1 <= x, y <= n, x neq y . In response to this query, the program written by Mike will give you mathrm{lcm}(a_x, a_y) , where mathrm{lcm}(c,d) denotes the least common multiple of c and d . Solve Mike's problem! Each test contains multiple test cases. The first line contains one positive integer t ( 1 <= t <= 20 ), denoting the number of test cases. Description of the test cases follows. The single line of each test case contains one positive integer n ( 3 <= n <= 10^5 ) -- number of tubes in Mike's tubular bells. Also 1 <= l <= r <= 2 cdot 10^5 , i.e. the lengths of the tubes do not exceed 2 cdot 10^5 . It is guaranteed that the sum of maximal number of queries (i.e. n + 5000 ) over all test cases does not exceed 10^5 + 5000 . It means that sum of n does not exceed 10^5 + 5000 - t cdot 5000 . For each set of input data, read one integer n . You "... |
Editorial of Codeforces Round 741 (Div. 2) |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
127128368 | rainboy | F | Aug. 26, 2021, 5:42 p.m. | OK | GNU C11 | TESTS | 132 | 1528 | 5120000 | ||
127157826 | zihouzhong | F | Aug. 27, 2021, 4:26 a.m. | OK | GNU C++14 | TESTS | 134 | 966 | 6348800 | ||
127150754 | yspm | F | Aug. 27, 2021, 2:18 a.m. | OK | GNU C++14 | TESTS | 134 | 982 | 26624000 | ||
127150661 | yspm | F | Aug. 27, 2021, 2:16 a.m. | OK | GNU C++14 | TESTS | 134 | 998 | 26624000 | ||
127162015 | yltx | F | Aug. 27, 2021, 5:30 a.m. | OK | GNU C++14 | TESTS | 134 | 1169 | 5734400 | ||
127139921 | cy1999 | F | Aug. 26, 2021, 8:10 p.m. | OK | GNU C++14 | TESTS | 133 | 1185 | 5939200 | ||
127153560 | 6945930042DucLA | F | Aug. 27, 2021, 3:13 a.m. | OK | GNU C++14 | TESTS | 134 | 2963 | 5939200 | ||
127134534 | 200815147 | F | Aug. 26, 2021, 6:38 p.m. | OK | GNU C++17 | TESTS | 132 | 826 | 9318400 | ||
127159495 | 2.718281828 | F | Aug. 27, 2021, 4:53 a.m. | OK | GNU C++17 | TESTS | 134 | 889 | 4915200 | ||
127140572 | AlgebraCalculus420 | F | Aug. 26, 2021, 8:28 p.m. | OK | GNU C++17 | TESTS | 133 | 889 | 5734400 | ||
127133657 | cakewalk_nahi_hota | F | Aug. 26, 2021, 6:27 p.m. | OK | GNU C++17 | TESTS | 132 | 935 | 11366400 | ||
127148079 | wifiiii | F | Aug. 27, 2021, 1:21 a.m. | OK | GNU C++17 | TESTS | 134 | 951 | 4505600 | ||
127155222 | LJC00118 | F | Aug. 27, 2021, 3:41 a.m. | OK | GNU C++17 | TESTS | 134 | 982 | 6144000 | ||
127135920 | flashmt | F | Aug. 26, 2021, 6:57 p.m. | OK | GNU C++17 | TESTS | 132 | 1044 | 9625600 | ||
127124061 | Vercingetorix | F | Aug. 26, 2021, 4:46 p.m. | OK | GNU C++17 | TESTS | 132 | 1045 | 21708800 | ||
127127632 | phathnv202 | F | Aug. 26, 2021, 5:40 p.m. | OK | GNU C++17 | TESTS | 132 | 1076 | 6041600 | ||
127137600 | dqhungdl | F | Aug. 26, 2021, 7:24 p.m. | OK | GNU C++17 | TESTS | 132 | 1092 | 11366400 | ||
127144584 | fdironia | F | Aug. 26, 2021, 11 p.m. | OK | GNU C++17 (64) | TESTS | 133 | 795 | 4915200 | ||
127150675 | AutumnKite | F | Aug. 27, 2021, 2:17 a.m. | OK | GNU C++17 (64) | TESTS | 134 | 811 | 4915200 | ||
127133855 | ToxicPie9 | F | Aug. 26, 2021, 6:29 p.m. | OK | GNU C++17 (64) | TESTS | 132 | 811 | 10547200 | ||
127152723 | froggyzhang | F | Aug. 27, 2021, 2:58 a.m. | OK | GNU C++17 (64) | TESTS | 134 | 826 | 6553600 | ||
127153720 | neal | F | Aug. 27, 2021, 3:16 a.m. | OK | GNU C++17 (64) | TESTS | 134 | 842 | 5427200 | ||
127162099 | MateoCV | F | Aug. 27, 2021, 5:31 a.m. | OK | GNU C++17 (64) | TESTS | 134 | 842 | 7680000 | ||
127162345 | MateoCV | F | Aug. 27, 2021, 5:35 a.m. | OK | GNU C++17 (64) | TESTS | 134 | 842 | 7680000 | ||
127129920 | ToxicPie9 | F | Aug. 26, 2021, 5:51 p.m. | OK | GNU C++17 (64) | TESTS | 132 | 857 | 10547200 | ||
127127708 | nok0 | F | Aug. 26, 2021, 5:40 p.m. | OK | GNU C++17 (64) | TESTS | 132 | 872 | 19865600 | ||
127153005 | froggyzhang | F | Aug. 27, 2021, 3:03 a.m. | OK | GNU C++17 (64) | TESTS | 134 | 888 | 6041600 | ||
127139728 | manish.17 | F | Aug. 26, 2021, 8:07 p.m. | OK | PyPy 3 | TESTS | 133 | 4664 | 106803200 |
Back to search problems