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 |
|---|---|---|---|---|---|---|
| 773 | VK Cup 2017 - Round 3 | FINISHED | False | 10800 | 282233723 | May 7, 2017, 3:45 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 218 ) | F | Test Data Generation | PROGRAMMING | combinatorics divide and conquer dp fft math number theory | 3400 |
Test data generation is not an easy task! Often, generating big random test cases is not enough to ensure thorough testing of solutions for correctness. For example, consider a problem from an old Codeforces round. Its input format looks roughly as follows: The first line contains a single integer n ( 1 ≤ n ≤ max n ) — the size of the set. The second line contains n distinct integers a 1 , a 2 , ..., a n ( 1 ≤ a i ≤ max a ) — the elements of the set in increasing order . If you don't pay attention to the problem solution, it looks fairly easy to generate a good test case for this problem. Let n = max n , take random distinct a i from 1 to max a , sort them... Soon you understand that it's not that easy. Here is the actual problem solution. Let g be the greatest common divisor of a 1 , a 2 , ..., a n . Let x = a n / g - n . Then the correct solution outputs " Alice " if x is odd, and " Bob " if x is even. Consider two wrong solutions to this problem which differ from the correct one only in the formula for calculating x . The first wrong solution calculates x as x = a n / g (without subtracting n ). The second wrong solution calculates x as x = a n - n (without dividing by g ). A test case is interesting if it makes both wrong solutions output an incorrect answer. Given max n , max a and q , find the number of interesting test cases satisfying the constraints, and output it modulo q . The only line contains three integers max n , max a and q ( 1 ≤ max n ≤ 30 000 ; max n ≤ max a ≤ 10 9 ; 10 4 ≤ q ≤ 10 5 + 129 ). Output a single integer — the number of test cases which satisfy the constraints and make both wrong solutions output an incorrect answer, modulo q . In the first example, interesting test cases look as follows: |
| VK Cup 2017 Round 3 + Codeforces Round #412 -- Tutorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 27938402 | xjtt | F | June 21, 2017, 6:21 a.m. | OK | GNU C++ | TESTS | 105 | 468 | 196505600 | 3400 | |
| 27067442 | 20150706 | F | May 13, 2017, 2:54 a.m. | OK | GNU C++ | TESTS | 105 | 702 | 2969600 | 3400 | |
| 30636764 | F.Darcy | F | Sept. 23, 2017, 9:27 a.m. | OK | GNU C++ | TESTS | 105 | 702 | 11366400 | 3400 | |
| 27359988 | CodingKnight | F | May 26, 2017, 4:25 p.m. | OK | GNU C++ | TESTS | 105 | 764 | 4710400 | 3400 | |
| 28816955 | y20070316 | F | July 24, 2017, 7 a.m. | OK | GNU C++ | TESTS | 105 | 1122 | 10035200 | 3400 | |
| 27359591 | krijgertje | F | May 26, 2017, 4:02 p.m. | OK | GNU C++ | TESTS | 105 | 2293 | 10342400 | 3400 | |
| 55747084 | 137_345_2814 | F | June 19, 2019, 10:39 a.m. | OK | GNU C++11 | TESTS | 105 | 358 | 22732800 | 3400 | |
| 47103529 | zhouyuyang | F | Dec. 16, 2018, 11:52 a.m. | OK | GNU C++11 | TESTS | 105 | 405 | 5222400 | 3400 | |
| 27284835 | Dirak | F | May 22, 2017, 1:19 p.m. | OK | GNU C++11 | TESTS | 105 | 545 | 15974400 | 3400 | |
| 47315502 | newbiegcz | F | Dec. 21, 2018, 2:43 a.m. | OK | GNU C++11 | TESTS | 105 | 561 | 14438400 | 3400 | |
| 48712963 | giging | F | Jan. 22, 2019, 9:33 a.m. | OK | GNU C++11 | TESTS | 105 | 639 | 4710400 | 3400 | |
| 30299951 | lxlxl | F | Sept. 13, 2017, 6:03 a.m. | OK | GNU C++11 | TESTS | 105 | 779 | 11980800 | 3400 | |
| 29368301 | MohanLau | F | Aug. 12, 2017, 4:42 a.m. | OK | GNU C++11 | TESTS | 105 | 889 | 19353600 | 3400 | |
| 51113591 | Iscream2001 | F | March 10, 2019, 5:50 a.m. | OK | GNU C++11 | TESTS | 105 | 904 | 18432000 | 3400 | |
| 27015388 | Toxel | F | May 11, 2017, 2:31 p.m. | OK | GNU C++11 | TESTS | 105 | 919 | 10547200 | 3400 | |
| 55387039 | __23333 | F | June 10, 2019, 7:57 a.m. | OK | GNU C++11 | TESTS | 105 | 951 | 17305600 | 3400 | |
| 27280644 | InvUsr | F | May 22, 2017, 9:27 a.m. | OK | GNU C++14 | TESTS | 105 | 374 | 4710400 | 3400 | |
| 40982286 | ReaLNero1 | F | July 30, 2018, 6:21 p.m. | OK | GNU C++14 | TESTS | 105 | 389 | 8806400 | 3400 | |
| 39229838 | samjia2000 | F | June 14, 2018, 2:26 a.m. | OK | GNU C++14 | TESTS | 105 | 452 | 5222400 | 3400 | |
| 27626264 | I_Love_Umirzhanova_Amina | F | June 7, 2017, 6:11 a.m. | OK | GNU C++14 | TESTS | 105 | 483 | 16076800 | 3400 | |
| 27160645 | WuHongxun | F | May 16, 2017, 1:29 p.m. | OK | GNU C++14 | TESTS | 105 | 483 | 24678400 | 3400 | |
| 47539891 | bestFy | F | Dec. 27, 2018, 6:13 a.m. | OK | GNU C++14 | TESTS | 105 | 546 | 4710400 | 3400 | |
| 55283923 | Acheing | F | June 8, 2019, 3:30 a.m. | OK | GNU C++14 | TESTS | 105 | 592 | 12185600 | 3400 | |
| 37452994 | ykn1 | F | April 19, 2018, 5:55 a.m. | OK | GNU C++14 | TESTS | 105 | 717 | 14848000 | 3400 | |
| 26992549 | YakutovDmitriy | F | May 10, 2017, 8:49 a.m. | OK | GNU C++14 | TESTS | 105 | 748 | 235724800 | 3400 | |
| 26992575 | YakutovDmitriy | F | May 10, 2017, 8:51 a.m. | OK | GNU C++14 | TESTS | 105 | 748 | 235827200 | 3400 | |
| 63236658 | gongsuidashen | F | Oct. 23, 2019, 12:28 p.m. | OK | GNU C++17 | TESTS | 105 | 577 | 11980800 | 3400 | |
| 58562517 | Romeolong | F | Aug. 11, 2019, 6:26 a.m. | OK | GNU C++17 | TESTS | 105 | 951 | 33075200 | 3400 | |
| 57381703 | Benq | F | July 20, 2019, 2:51 p.m. | OK | GNU C++17 | TESTS | 105 | 3322 | 7577600 | 3400 |
Back to search problems