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 |
---|---|---|---|---|---|---|
1179 | Codeforces Round 569 (Div. 1) | FINISHED | False | 7200 | 176302487 | June 21, 2019, 5:05 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 181 ) | E | Alesya and Discrete Math | PROGRAMMING | divide and conquer interactive | 3200 |
B'We call a function good if its domain of definition is some set of integers and if in case it 's defined in x and x-1 , f(x) = f(x-1) + 1 or f(x) = f(x-1) . Tanya has found n good functions f_{1}, ldots, f_{n} , which are defined on all integers from 0 to 10^{18} and f_i(0) = 0 and f_i(10^{18}) = L for all i from 1 to n . It 's an notorious coincidence that n is a divisor of L . She suggests Alesya a game. Using one question Alesya can ask Tanya a value of any single function in any single point. To win Alesya must choose integers l_{i} and r_{i} ( 0 <= q l_{i} <= q r_{i} <= q 10^{18} ), such that f_{i}(r_{i}) - f_{i}(l_{i}) geq frac{L}{n} (here f_i(x) means the value of i -th function at point x ) for all i such that 1 <= q i <= q n so that for any pair of two functions their segments [l_i, r_i] don 't intersect (but may have one common point). Unfortunately, Tanya doesn 't allow to make more than 2 cdot 10^{5} questions. Help Alesya to win! It can be proved that it 's always possible to choose [l_i, r_i] which satisfy the conditions described above. It 's guaranteed, that Tanya doesn 't change functions during the game, i.e. interactor is not adaptive The first line contains two integers n and L ( 1 <= q n <= q 1000 , 1 <= q L <= q 10^{18} , n is a divisor of L ) -- number of functions and their value in 10^{18} . When you 've found needed l_i, r_i , print "!" without quotes on a separate line and then n lines, i -th from them should contain two integers l_i , r_i divided by space. To ask f_i(x) , print symbol "?" without quotes and then two integers i and x ( 1 <= q i <= q n , 0 <= q x <= q 10^{18} ). Note, you must flush your output to get a response. After that, you should read an integer which is a value o'... |
Editorial of Round #569 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
58988775 | _twilight | E | Aug. 18, 2019, 8:18 a.m. | OK | GNU C++11 | TESTS | 83 | 529 | 102400 | 3200 | |
62176279 | RNS_JKS | E | Oct. 9, 2019, 4:15 a.m. | OK | GNU C++11 | TESTS | 83 | 545 | 0 | 3200 | |
56055985 | Lagoon_ | E | June 25, 2019, 11:41 p.m. | OK | GNU C++11 | TESTS | 83 | 592 | 0 | 3200 | |
55910127 | apiadu | E | June 22, 2019, 1:03 a.m. | OK | GNU C++11 | TESTS | 83 | 639 | 102400 | 3200 | |
55992362 | shanxizeng | E | June 24, 2019, 8:23 a.m. | OK | GNU C++11 | TESTS | 83 | 654 | 0 | 3200 | |
55995547 | eriksuenderhauf | E | June 24, 2019, 10:10 a.m. | OK | GNU C++11 | TESTS | 83 | 670 | 4812800 | 3200 | |
56023295 | alphaGem | E | June 25, 2019, 5:28 a.m. | OK | GNU C++11 | TESTS | 83 | 717 | 102400 | 3200 | |
55986406 | frodakcin | E | June 24, 2019, 4:06 a.m. | OK | GNU C++11 | TESTS | 83 | 733 | 0 | 3200 | |
56024475 | yasugongshang | E | June 25, 2019, 6:12 a.m. | OK | GNU C++11 | TESTS | 83 | 748 | 102400 | 3200 | |
57865548 | lopare | E | July 27, 2019, 8:45 p.m. | OK | GNU C++11 | TESTS | 83 | 763 | 0 | 3200 | |
55986749 | ksun48 | E | June 24, 2019, 4:29 a.m. | OK | GNU C++14 | TESTS | 83 | 218 | 1331200 | 3200 | |
55986793 | ksun48 | E | June 24, 2019, 4:32 a.m. | OK | GNU C++14 | TESTS | 83 | 233 | 1331200 | 3200 | |
55986802 | ksun48 | E | June 24, 2019, 4:33 a.m. | OK | GNU C++14 | TESTS | 83 | 264 | 1331200 | 3200 | |
55986810 | ksun48 | E | June 24, 2019, 4:33 a.m. | OK | GNU C++14 | TESTS | 83 | 265 | 1331200 | 3200 | |
56765320 | icecuber | E | July 9, 2019, 5:58 p.m. | OK | GNU C++14 | TESTS | 83 | 499 | 716800 | 3200 | |
55901885 | ecnerwala | E | June 21, 2019, 6:57 p.m. | OK | GNU C++14 | TESTS | 83 | 545 | 3276800 | 3200 | |
55959334 | soloSquad1999 | E | June 23, 2019, 8:51 a.m. | OK | GNU C++14 | TESTS | 83 | 873 | 4608000 | 3200 | |
61902768 | Motarack | E | Oct. 5, 2019, 9 a.m. | OK | GNU C++14 | TESTS | 83 | 982 | 5120000 | 3200 | |
56380501 | DongryulKim | E | July 1, 2019, 8:16 a.m. | OK | GNU C++14 | TESTS | 83 | 1029 | 204800 | 3200 | |
55902523 | ACRush | E | June 21, 2019, 6:59 p.m. | OK | GNU C++14 | TESTS | 83 | 1060 | 5120000 | 3200 | |
55988407 | Petr | E | June 24, 2019, 6:03 a.m. | OK | GNU C++17 | TESTS | 83 | 748 | 4096000 | 3200 | |
58517447 | superguyjm | E | Aug. 10, 2019, 1:34 a.m. | OK | GNU C++17 | TESTS | 83 | 810 | 0 | 3200 | |
58517538 | superguyjm | E | Aug. 10, 2019, 1:39 a.m. | OK | GNU C++17 | TESTS | 83 | 889 | 0 | 3200 | |
55905388 | Benq | E | June 21, 2019, 9:07 p.m. | OK | GNU C++17 | TESTS | 83 | 919 | 3584000 | 3200 | |
57327346 | tabasz | E | July 19, 2019, 12:42 p.m. | OK | GNU C++17 | TESTS | 83 | 951 | 512000 | 3200 | |
57327272 | tabasz | E | July 19, 2019, 12:40 p.m. | OK | GNU C++17 | TESTS | 83 | 966 | 409600 | 3200 | |
55979611 | codeurway_codeforces | E | June 23, 2019, 7:55 p.m. | OK | GNU C++17 | TESTS | 83 | 1013 | 5120000 | 3200 | |
57560184 | krijgertje | E | July 22, 2019, 11:41 p.m. | OK | GNU C++17 | TESTS | 83 | 1029 | 204800 | 3200 | |
57620762 | Kuroni | E | July 24, 2019, 4:32 a.m. | OK | GNU C++17 | TESTS | 83 | 1044 | 204800 | 3200 | |
69009656 | user202729_ | E | Jan. 18, 2020, 2:45 a.m. | OK | GNU C++17 | TESTS | 83 | 1060 | 204800 | 3200 |
Back to search problems