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 |
---|---|---|---|---|---|---|
717 | Bubble Cup 9 - Finals [Online Mirror] | FINISHED | False | 18000 | 264027604 | Sept. 11, 2016, 9 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 379 ) | A | Festival Organization | PROGRAMMING | math number theory | 3000 |
B'The Prodiggers are quite a cool band and for this reason, they have been the surprise guest at the ENTER festival for the past 80 years. At the beginning of their careers, they weren xe2 x80 x99t so successful, so they had to spend time digging channels to earn money; hence the name. Anyway, they like to tour a lot and have surprising amounts of energy to do extremely long tours. However, they hate spending two consecutive days without having a concert, so they would like to avoid it. A tour is defined by a sequence of concerts and days-off. You need to count in how many ways The Prodiggers can select k different tours of the same length between l and r. For example if k xe2 x80 x89= xe2 x80 x892, l xe2 x80 x89= xe2 x80 x891 and r xe2 x80 x89= xe2 x80 x892, if we define concert day as {1} and day-off as {0}, here are all possible tours: {0}, {1}, {00}, {01}, {10}, {11}. But tour 00 can not be selected because it has 2 days-off in a row. Now, we need to count in how many ways we can select k xe2 x80 x89= xe2 x80 x892 tours of the same length in range [1;2]. Here they are: {0,1}; {01,10}; {01,11}; {10,11}. Since their schedule is quite busy, they want you to tell them in how many ways can do that, modulo 1 xe2 x80 x89000 xe2 x80 x89000 xe2 x80 x89007 (109 xe2 x80 x89+ xe2 x80 x897). The first line of the input contains three integers k, l and r (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89k xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89200, 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89l xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89r xe2 x80 x89 xe2 x89 xa4 xe2 x80 x891018). Output a single number: the number of ways to select k different tours of the same length, modulo 1 xe2 x80 x89000 xe2 x80 x89000 xe2 x80 x89007. '... |
Tutorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
20533816 | C_SUNSHINE | A | Sept. 11, 2016, 2:16 p.m. | OK | GNU C++ | TESTS | 80 | 93 | 307200 | 3000 | |
20771411 | Owaski | A | Sept. 20, 2016, 9:01 a.m. | OK | GNU C++ | TESTS | 80 | 109 | 204800 | 3000 | |
30532311 | wzj152501 | A | Sept. 20, 2017, 1:43 a.m. | OK | GNU C++ | TESTS | 80 | 124 | 204800 | 3000 | |
42201350 | luogu_bot5 | A | Aug. 28, 2018, 8:57 a.m. | OK | GNU C++ | TESTS | 80 | 124 | 307200 | 3000 | |
20571042 | liujunhao | A | Sept. 13, 2016, 4:19 p.m. | OK | GNU C++ | TESTS | 80 | 124 | 307200 | 3000 | |
24348818 | consecutivelimit | A | Feb. 1, 2017, 3:58 p.m. | OK | GNU C++ | TESTS | 80 | 140 | 2048000 | 3000 | |
36044191 | vjudge5 | A | March 7, 2018, 12:36 p.m. | OK | GNU C++ | TESTS | 80 | 156 | 2048000 | 3000 | |
25163089 | Dylans | A | March 3, 2017, 5:36 a.m. | OK | GNU C++ | TESTS | 80 | 156 | 2252800 | 3000 | |
24028719 | immortalCO | A | Jan. 22, 2017, 10:58 a.m. | OK | GNU C++ | TESTS | 80 | 171 | 2252800 | 3000 | |
24729630 | MemS | A | Feb. 17, 2017, 1:50 a.m. | OK | GNU C++ | TESTS | 80 | 171 | 2764800 | 3000 | |
20627592 | pr3pony | A | Sept. 14, 2016, 9:16 p.m. | OK | GNU C++11 | TESTS | 80 | 31 | 0 | 3000 | |
22596157 | jiry_2 | A | Nov. 29, 2016, 10:29 a.m. | OK | GNU C++11 | TESTS | 80 | 46 | 102400 | 3000 | |
20627463 | pr3pony | A | Sept. 14, 2016, 9:02 p.m. | OK | GNU C++11 | TESTS | 80 | 46 | 204800 | 3000 | |
40983675 | ReaLNero1 | A | July 30, 2018, 6:59 p.m. | OK | GNU C++11 | TESTS | 80 | 46 | 204800 | 3000 | |
20550853 | FizzyDavid | A | Sept. 12, 2016, 2:27 p.m. | OK | GNU C++11 | TESTS | 80 | 78 | 0 | 3000 | |
53173742 | Rubbish12345 | A | April 23, 2019, 1:26 a.m. | OK | GNU C++11 | TESTS | 80 | 78 | 716800 | 3000 | |
41275391 | zhouyuyang | A | Aug. 6, 2018, 12:53 p.m. | OK | GNU C++11 | TESTS | 80 | 93 | 0 | 3000 | |
58265656 | shuitiacji | A | Aug. 4, 2019, 2:24 p.m. | OK | GNU C++11 | TESTS | 80 | 93 | 204800 | 3000 | |
57780604 | luogu_bot5 | A | July 26, 2019, 5:49 a.m. | OK | GNU C++11 | TESTS | 80 | 93 | 204800 | 3000 | |
51472038 | luogu_bot4 | A | March 19, 2019, 7:08 a.m. | OK | GNU C++11 | TESTS | 80 | 93 | 819200 | 3000 | |
34200247 | Rawnd | A | Jan. 15, 2018, 3:06 p.m. | OK | GNU C++14 | TESTS | 80 | 93 | 2969600 | 3000 | |
54806155 | Narh | A | May 29, 2019, 2:15 p.m. | OK | GNU C++14 | TESTS | 80 | 109 | 307200 | 3000 | |
54609086 | fleimgruber | A | May 25, 2019, 10:31 a.m. | OK | GNU C++14 | TESTS | 80 | 109 | 614400 | 3000 | |
25083650 | Vladyslav | A | Feb. 27, 2017, 5:01 p.m. | OK | GNU C++14 | TESTS | 80 | 124 | 2048000 | 3000 | |
21221646 | I_Love_Tina | A | Oct. 5, 2016, 8:46 p.m. | OK | GNU C++14 | TESTS | 80 | 124 | 2150400 | 3000 | |
20989232 | Mohamed_AboBakr | A | Sept. 29, 2016, 10:43 a.m. | OK | GNU C++14 | TESTS | 80 | 139 | 307200 | 3000 | |
45798683 | MAKE_XJ_GREAT_AGAIN | A | Nov. 16, 2018, 12:12 p.m. | OK | GNU C++14 | TESTS | 80 | 139 | 1024000 | 3000 | |
58079203 | idxcalcal | A | July 31, 2019, 1:23 p.m. | OK | GNU C++14 | TESTS | 80 | 140 | 307200 | 3000 | |
20531862 | jiaqiyang ExfJoe AcrossTheSky | A | Sept. 11, 2016, 12:59 p.m. | OK | GNU C++14 | TESTS | 80 | 140 | 716800 | 3000 | |
22875657 | NiroBC | A | Dec. 11, 2016, 10:55 a.m. | OK | GNU C++14 | TESTS | 80 | 156 | 307200 | 3000 | |
66276866 | vjudge2 | A | Dec. 4, 2019, 3:01 p.m. | OK | GNU C++17 | TESTS | 80 | 139 | 409600 | 3000 | |
41399081 | q234rty | A | Aug. 9, 2018, 12:41 p.m. | OK | GNU C++17 | TESTS | 80 | 139 | 30720000 | 3000 | |
47516253 | BackOnTrack | A | Dec. 26, 2018, 10:08 a.m. | OK | GNU C++17 | TESTS | 80 | 217 | 1331200 | 3000 | |
56997143 | Benq | A | July 13, 2019, 11:58 p.m. | OK | GNU C++17 | TESTS | 80 | 452 | 204800 | 3000 | |
20634143 | lehar | A | Sept. 15, 2016, 7:30 a.m. | OK | Java 8 | TESTS | 80 | 405 | 0 | 3000 | |
20614842 | uwi | A | Sept. 14, 2016, 1:08 p.m. | OK | Java 8 | TESTS | 80 | 405 | 0 | 3000 | |
20530305 | tourist VArtem | A | Sept. 11, 2016, 11:57 a.m. | OK | Java 8 | TESTS | 80 | 608 | 0 | 3000 | |
26455607 | Los_Angelos_Laycurse | A | April 17, 2017, 1:12 p.m. | OK | MS C++ | TESTS | 80 | 436 | 2457600 | 3000 |
Back to search problems