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 |
---|---|---|---|---|---|---|
193 | Codeforces Round 122 (Div. 1) | FINISHED | False | 7200 | 399133786 | June 3, 2012, 3:30 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 345 ) | E | Fibonacci Number | PROGRAMMING | brute force math matrices | 2900 |
B"John Doe has a list of all Fibonacci numbers modulo 1013. This list is infinite, it starts with numbers 0 and 1. Each number in the list, apart from the first two, is a sum of previous two modulo 1013. That is, John's list is made from the Fibonacci numbers' list by replacing each number there by the remainder when divided by 1013. John got interested in number f (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89f xe2 x80 x89< xe2 x80 x891013) and now wants to find its first occurrence in the list given above. Help John and find the number of the first occurence of number f in the list or otherwise state that number f does not occur in the list. The numeration in John's list starts from zero. There, the 0-th position is the number 0, the 1-st position is the number 1, the 2-nd position is the number 1, the 3-rd position is the number 2, the 4-th position is the number 3 and so on. Thus, the beginning of the list looks like this: 0, xe2 x80 x891, xe2 x80 x891, xe2 x80 x892, xe2 x80 x893, xe2 x80 x895, xe2 x80 x898, xe2 x80 x8913, xe2 x80 x8921, xe2 x80 x89... The first line contains the single integer f (0 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89f xe2 x80 x89< xe2 x80 x891013) -- the number, which position in the list we should find. Please, do not use the %lld specifier to read or write 64-bit integers in xd0 xa1++. It is preferred to use the cin, cout streams or the %I64d specifier. Print a single number -- the number of the first occurrence of the given number in John's list. If this number doesn't occur in John's list, print -1."... |
Editoral Codeforces Round #122 |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
2876951 | luogan | E | Jan. 6, 2013, 7:39 a.m. | OK | FPC | TESTS | 61 | 406 | 0 | 2900 | |
1798906 | ACTheory | E | June 13, 2012, 2 a.m. | OK | FPC | TESTS | 61 | 450 | 1228800 | 2900 | |
1784368 | blackapple | E | June 11, 2012, 11:53 a.m. | OK | FPC | TESTS | 61 | 1000 | 1228800 | 2900 | |
3069515 | James | E | Feb. 4, 2013, 5:22 a.m. | OK | GNU C++ | TESTS | 61 | 15 | 102400 | 2900 | |
4231744 | metafluor | E | Aug. 5, 2013, 6:52 a.m. | OK | GNU C++ | TESTS | 61 | 30 | 0 | 2900 | |
4172022 | ydc | E | July 27, 2013, 12:38 a.m. | OK | GNU C++ | TESTS | 61 | 30 | 204800 | 2900 | |
5401601 | glassices | E | Dec. 10, 2013, 7:06 a.m. | OK | GNU C++ | TESTS | 61 | 30 | 819200 | 2900 | |
35509884 | vjudge2 | E | Feb. 20, 2018, 3 a.m. | OK | GNU C++ | TESTS | 61 | 30 | 2048000 | 2900 | |
24486944 | black_horse2014 | E | Feb. 7, 2017, 11:41 a.m. | OK | GNU C++ | TESTS | 61 | 30 | 2048000 | 2900 | |
4172615 | vjtest | E | July 27, 2013, 2:28 a.m. | OK | GNU C++ | TESTS | 61 | 30 | 8192000 | 2900 | |
4172606 | yzl_retry | E | July 27, 2013, 2:27 a.m. | OK | GNU C++ | TESTS | 61 | 30 | 8192000 | 2900 | |
2899559 | littlefriend | E | Jan. 9, 2013, 1:24 p.m. | OK | GNU C++ | TESTS | 61 | 31 | 0 | 2900 | |
2670857 | CMHJT | E | Nov. 28, 2012, 12:06 a.m. | OK | GNU C++ | TESTS | 61 | 31 | 0 | 2900 | |
2870198 | anmtcel | E | Jan. 3, 2013, 6:06 p.m. | OK | GNU C++0x | TESTS | 61 | 31 | 0 | 2900 | |
2640314 | apia | E | Nov. 25, 2012, 7:54 a.m. | OK | GNU C++0x | TESTS | 61 | 46 | 0 | 2900 | |
2603633 | llj_bash | E | Nov. 20, 2012, 7:18 a.m. | OK | GNU C++0x | TESTS | 61 | 46 | 0 | 2900 | |
2603613 | llj_bash | E | Nov. 20, 2012, 7:14 a.m. | OK | GNU C++0x | TESTS | 61 | 46 | 0 | 2900 | |
2800235 | dhh1995 | E | Dec. 21, 2012, 4:46 a.m. | OK | GNU C++0x | TESTS | 61 | 62 | 102400 | 2900 | |
1766169 | Shapo | E | June 5, 2012, 3:41 p.m. | OK | GNU C++0x | TESTS | 61 | 90 | 1433600 | 2900 | |
1766156 | Shapo | E | June 5, 2012, 3:34 p.m. | OK | GNU C++0x | TESTS | 61 | 90 | 1433600 | 2900 | |
2641174 | dc. | E | Nov. 25, 2012, 12:07 p.m. | OK | GNU C++0x | TESTS | 61 | 93 | 0 | 2900 | |
2825201 | bakabakashyoshyo | E | Dec. 25, 2012, 10:11 a.m. | OK | GNU C++0x | TESTS | 61 | 140 | 80179200 | 2900 | |
2869592 | xlk | E | Jan. 3, 2013, 2:19 p.m. | OK | GNU C++0x | TESTS | 61 | 265 | 0 | 2900 | |
19559682 | Wrong_Answer_ | E | Aug. 1, 2016, 11:57 a.m. | OK | GNU C++11 | TESTS | 61 | 30 | 0 | 2900 | |
12117477 | desert97 | E | July 19, 2015, 2:10 p.m. | OK | GNU C++11 | TESTS | 61 | 30 | 0 | 2900 | |
57900627 | lopare | E | July 28, 2019, 3:32 p.m. | OK | GNU C++11 | TESTS | 61 | 62 | 0 | 2900 | |
57822415 | py_ultron | E | July 27, 2019, 12:34 a.m. | OK | GNU C++11 | TESTS | 61 | 62 | 0 | 2900 | |
40568082 | vjudge1 | E | July 20, 2018, 6:39 a.m. | OK | GNU C++11 | TESTS | 61 | 62 | 0 | 2900 | |
18516121 | newbeginBKB | E | June 16, 2016, 8:48 a.m. | OK | GNU C++11 | TESTS | 61 | 62 | 0 | 2900 | |
41303252 | Ithea_Myse_Valgulious | E | Aug. 7, 2018, 11:34 a.m. | OK | GNU C++11 | TESTS | 61 | 62 | 307200 | 2900 | |
41303232 | vjudge2 | E | Aug. 7, 2018, 11:34 a.m. | OK | GNU C++11 | TESTS | 61 | 62 | 307200 | 2900 | |
41303213 | Fuko_Ibuki | E | Aug. 7, 2018, 11:33 a.m. | OK | GNU C++11 | TESTS | 61 | 62 | 307200 | 2900 | |
17121603 | freebsdx | E | April 2, 2016, 2:33 a.m. | OK | GNU C++11 | TESTS | 61 | 62 | 2252800 | 2900 | |
69897237 | Scut82 | E | Jan. 31, 2020, 12:05 p.m. | OK | GNU C++14 | TESTS | 61 | 62 | 0 | 2900 | |
56030063 | Scut82 | E | June 25, 2019, 9:02 a.m. | OK | GNU C++14 | TESTS | 61 | 62 | 102400 | 2900 | |
56040796 | Scut82 | E | June 25, 2019, 2:14 p.m. | OK | GNU C++14 | TESTS | 61 | 62 | 204800 | 2900 | |
23667968 | Ali.Pi | E | Jan. 9, 2017, 5:25 p.m. | OK | GNU C++14 | TESTS | 61 | 62 | 2048000 | 2900 | |
56032781 | Scut82 | E | June 25, 2019, 10:30 a.m. | OK | GNU C++14 | TESTS | 61 | 62 | 16076800 | 2900 | |
69897538 | Scut82 | E | Jan. 31, 2020, 12:10 p.m. | OK | GNU C++14 | TESTS | 61 | 92 | 0 | 2900 | |
28952809 | SakurakoujiRuna | E | July 28, 2017, 12:28 p.m. | OK | GNU C++14 | TESTS | 61 | 156 | 2048000 | 2900 | |
69815909 | Scut82 | E | Jan. 30, 2020, 6:09 a.m. | OK | GNU C++14 | TESTS | 61 | 186 | 51097600 | 2900 | |
41289166 | vjudge3 | E | Aug. 7, 2018, 12:48 a.m. | OK | GNU C++14 | TESTS | 61 | 312 | 16076800 | 2900 | |
41289159 | yzyyylx | E | Aug. 7, 2018, 12:48 a.m. | OK | GNU C++14 | TESTS | 61 | 342 | 16076800 | 2900 | |
57636540 | Krelkilet | E | July 24, 2019, 11:01 a.m. | OK | GNU C++17 | TESTS | 61 | 124 | 204800 | 2900 | |
57635486 | Renaats | E | July 24, 2019, 10:34 a.m. | OK | GNU C++17 | TESTS | 61 | 124 | 204800 | 2900 | |
62097405 | vjudge5 | E | Oct. 8, 2019, 7:59 a.m. | OK | GNU C++17 | TESTS | 61 | 154 | 204800 | 2900 | |
35613415 | vjudge5 | E | Feb. 24, 2018, 2:22 a.m. | OK | GNU C++17 | TESTS | 61 | 156 | 2048000 | 2900 | |
35613372 | vjudge5 | E | Feb. 24, 2018, 2:17 a.m. | OK | GNU C++17 | TESTS | 61 | 156 | 2048000 | 2900 | |
35613366 | vjudge4 | E | Feb. 24, 2018, 2:17 a.m. | OK | GNU C++17 | TESTS | 61 | 156 | 2048000 | 2900 | |
41386185 | vjudge3 | E | Aug. 9, 2018, 6:03 a.m. | OK | GNU C++17 | TESTS | 61 | 404 | 1638400 | 2900 | |
61525961 | -is-this-fft- | E | Sept. 29, 2019, 10:23 p.m. | OK | GNU C++17 | TESTS | 61 | 840 | 5324800 | 2900 | |
45031719 | ruo | E | Oct. 29, 2018, 4:42 a.m. | OK | GNU C++17 | TESTS | 61 | 1214 | 120524800 | 2900 | |
61465158 | wir | E | Sept. 29, 2019, 10:07 a.m. | OK | GNU C++17 | TESTS | 61 | 1872 | 252518400 | 2900 | |
1759198 | Petr | E | June 3, 2012, 4:56 p.m. | OK | Java 6 | TESTS | 61 | 90 | 43110400 | 2900 | |
1761022 | uwi | E | June 3, 2012, 5:46 p.m. | OK | Java 6 | TESTS | 61 | 90 | 43212800 | 2900 | |
3761536 | ftiasch | E | May 23, 2013, 2:53 p.m. | OK | Java 7 | TESTS | 61 | 281 | 0 | 2900 | |
3201868 | ysyshtc | E | Feb. 27, 2013, 9:06 a.m. | OK | Java 7 | TESTS | 61 | 609 | 0 | 2900 | |
2790636 | litaoye | E | Dec. 18, 2012, 12:09 p.m. | OK | Mono C# | TESTS | 61 | 62 | 2764800 | 2900 | |
3692427 | XilinX | E | May 8, 2013, 8:34 a.m. | OK | MS C++ | TESTS | 61 | 31 | 0 | 2900 | |
1761058 | Michael | E | June 3, 2012, 5:47 p.m. | OK | MS C++ | TESTS | 61 | 50 | 1433600 | 2900 | |
1763318 | Shef | E | June 4, 2012, 9:05 a.m. | OK | MS C++ | TESTS | 61 | 300 | 1433600 | 2900 | |
16370862 | Miss_Rentar | E | Feb. 26, 2016, 9:12 p.m. | OK | MS C++ | TESTS | 61 | 624 | 0 | 2900 | |
1761385 | al_maz | E | June 3, 2012, 6 p.m. | OK | MS C++ | TESTS | 61 | 780 | 1433600 | 2900 | |
6364133 | RiKang | E | April 15, 2014, 9:01 a.m. | OK | MS C++ | TESTS | 61 | 1964 | 0 | 2900 | |
39879199 | hiram1122 | E | July 2, 2018, 9:47 p.m. | OK | PyPy 2 | TESTS | 61 | 404 | 614400 | 2900 | |
39879142 | hiram1122 | E | July 2, 2018, 9:42 p.m. | OK | PyPy 2 | TESTS | 61 | 434 | 716800 | 2900 | |
39873630 | hiram1122 | E | July 2, 2018, 4:20 p.m. | OK | PyPy 2 | TESTS | 61 | 436 | 716800 | 2900 | |
39873644 | hiram1122 | E | July 2, 2018, 4:20 p.m. | OK | PyPy 2 | TESTS | 61 | 810 | 716800 | 2900 | |
39879111 | hiram1122 | E | July 2, 2018, 9:39 p.m. | OK | PyPy 2 | TESTS | 61 | 842 | 716800 | 2900 | |
1765407 | Basement_Cat | E | June 5, 2012, 8:14 a.m. | OK | Python 2 | TESTS | 61 | 190 | 2867200 | 2900 | |
2541901 | xlk | E | Nov. 12, 2012, 2:38 a.m. | OK | Python 2 | TESTS | 61 | 328 | 0 | 2900 | |
1758894 | hirosegolf | E | June 3, 2012, 4:49 p.m. | OK | Python 2 | TESTS | 61 | 340 | 2867200 | 2900 | |
35843943 | ______u______ | E | March 2, 2018, 3:21 p.m. | OK | Python 2 | TESTS | 61 | 374 | 4608000 | 2900 | |
35843915 | ______n______ | E | March 2, 2018, 3:21 p.m. | OK | Python 2 | TESTS | 61 | 374 | 4608000 | 2900 | |
35843709 | _____i_____ | E | March 2, 2018, 3:17 p.m. | OK | Python 2 | TESTS | 61 | 374 | 4608000 | 2900 | |
35843702 | _____k_____ | E | March 2, 2018, 3:17 p.m. | OK | Python 2 | TESTS | 61 | 374 | 4608000 | 2900 | |
35838808 | ______h______ | E | March 2, 2018, 1:41 p.m. | OK | Python 2 | TESTS | 61 | 374 | 4608000 | 2900 | |
35838805 | ______k______ | E | March 2, 2018, 1:41 p.m. | OK | Python 2 | TESTS | 61 | 374 | 4608000 | 2900 | |
35838482 | ______i______ | E | March 2, 2018, 1:34 p.m. | OK | Python 2 | TESTS | 61 | 374 | 4608000 | 2900 | |
19443621 | chielo | E | July 27, 2016, 2:06 p.m. | OK | Python 3 | TESTS | 61 | 310 | 307200 | 2900 | |
19443666 | vjudge5 | E | July 27, 2016, 2:08 p.m. | OK | Python 3 | TESTS | 61 | 342 | 307200 | 2900 | |
7200928 | Innovation | E | July 22, 2014, 9:07 a.m. | OK | Python 3 | TESTS | 61 | 530 | 0 | 2900 |
Back to search problems