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 |
---|---|---|---|---|---|---|
351 | Codeforces Round 204 (Div. 1) | FINISHED | False | 7200 | 356797797 | Oct. 4, 2013, 3:30 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 1133 ) | D | Jeff and Removing Periods | PROGRAMMING | data structures | 2700 |
B"Cosider a sequence, consisting of n integers: a1, a2, ..., an. Jeff can perform the following operation on sequence a: A beauty of a sequence a is the minimum number of operations that is needed to delete all elements from sequence a. Jeff's written down a sequence of m integers b1, b2, ..., bm. Now he wants to ask q questions. Each question can be described with two integers li, xe2 x80 x89ri. The answer to the question is the beauty of sequence bli, bli xe2 x80 x89+ xe2 x80 x891, ..., bri. You are given the sequence b and all questions. Help Jeff, answer all his questions. The first line contains integer m (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105). The next line contains m integers b1, b2, ..., bm (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89bi xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105). The third line contains integer q (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89q xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89105) -- the number of questions. The next q lines contain pairs of integers, i-th of them contains a pair of integers li, ri (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89li xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89ri xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89m) -- the description of i-th question. In q lines print the answers to Jeff's queries. Print the answers according to the order of questions in input."... |
Codeforces Round #204 — tutorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
4673434 | laoriu | D | Oct. 4, 2013, 6:14 p.m. | OK | FPC | TESTS | 29 | 342 | 9523200 | 2700 | |
10226989 | 403369233 | D | March 10, 2015, 1:39 p.m. | OK | FPC | TESTS | 29 | 436 | 3993600 | 2700 | |
4673268 | Rubanenko | D | Oct. 4, 2013, 6:09 p.m. | OK | FPC | TESTS | 29 | 436 | 5734400 | 2700 | |
10232556 | 403369233 | D | March 11, 2015, 12:01 a.m. | OK | FPC | TESTS | 29 | 622 | 12800000 | 2700 | |
23037272 | ShinFeb | D | Dec. 17, 2016, 12:09 a.m. | OK | GNU C++ | TESTS | 29 | 46 | 3993600 | 2700 | |
35569506 | quarteer | D | Feb. 22, 2018, 9:52 a.m. | OK | GNU C++ | TESTS | 29 | 46 | 18124800 | 2700 | |
37857728 | luogu_bot5 | D | May 3, 2018, 9:17 a.m. | OK | GNU C++ | TESTS | 29 | 61 | 7577600 | 2700 | |
40989490 | ReaLNero1 | D | July 30, 2018, 10:58 p.m. | OK | GNU C++ | TESTS | 29 | 61 | 16076800 | 2700 | |
18917273 | vjudge3 | D | July 6, 2016, 11:14 a.m. | OK | GNU C++ | TESTS | 29 | 78 | 3993600 | 2700 | |
17277425 | vjudge4 | D | April 11, 2016, 12:17 p.m. | OK | GNU C++ | TESTS | 29 | 78 | 4198400 | 2700 | |
11333247 | vjudge2 | D | May 28, 2015, 1:02 p.m. | OK | GNU C++ | TESTS | 29 | 78 | 4403200 | 2700 | |
28638719 | Scut82 | D | July 17, 2017, 12:06 p.m. | OK | GNU C++ | TESTS | 29 | 78 | 5734400 | 2700 | |
10835439 | Memory120 | D | April 23, 2015, 12:50 p.m. | OK | GNU C++ | TESTS | 29 | 78 | 6041600 | 2700 | |
18441764 | hehe0625 | D | June 14, 2016, 3:07 a.m. | OK | GNU C++ | TESTS | 29 | 78 | 7884800 | 2700 | |
4986181 | Archon.JK | D | Nov. 4, 2013, 1:12 p.m. | OK | GNU C++0x | TESTS | 29 | 156 | 3993600 | 2700 | |
4725501 | Shik | D | Oct. 10, 2013, 1:41 p.m. | OK | GNU C++0x | TESTS | 29 | 186 | 3993600 | 2700 | |
7364960 | delta_4d | D | Aug. 7, 2014, 5:37 a.m. | OK | GNU C++0x | TESTS | 29 | 186 | 5427200 | 2700 | |
5348258 | niklasb | D | Dec. 4, 2013, 2:25 p.m. | OK | GNU C++0x | TESTS | 29 | 218 | 3993600 | 2700 | |
5641845 | sping128 | D | Jan. 9, 2014, 8:58 a.m. | OK | GNU C++0x | TESTS | 29 | 248 | 6451200 | 2700 | |
7375013 | yutaka1999 | D | Aug. 8, 2014, 9:22 a.m. | OK | GNU C++0x | TESTS | 29 | 280 | 7884800 | 2700 | |
7572806 | zshi | D | Aug. 25, 2014, 12:18 p.m. | OK | GNU C++0x | TESTS | 29 | 404 | 13619200 | 2700 | |
4674268 | hex539 | D | Oct. 4, 2013, 6:59 p.m. | OK | GNU C++0x | TESTS | 29 | 404 | 30515200 | 2700 | |
8899648 | soda_beta | D | Nov. 30, 2014, 5:08 p.m. | OK | GNU C++0x | TESTS | 29 | 404 | 39936000 | 2700 | |
5348281 | niklasb | D | Dec. 4, 2013, 2:28 p.m. | OK | GNU C++0x | TESTS | 29 | 498 | 3993600 | 2700 | |
51373031 | y2823774827y | D | March 16, 2019, 12:52 p.m. | OK | GNU C++11 | TESTS | 29 | 77 | 3993600 | 2700 | |
44443802 | scientificuber | D | Oct. 17, 2018, 1:09 p.m. | OK | GNU C++11 | TESTS | 29 | 78 | 3788800 | 2700 | |
10538444 | Dark_sun | D | April 1, 2015, 4:45 a.m. | OK | GNU C++11 | TESTS | 29 | 78 | 3993600 | 2700 | |
10538438 | Dark_sun | D | April 1, 2015, 4:44 a.m. | OK | GNU C++11 | TESTS | 29 | 78 | 3993600 | 2700 | |
55809286 | LIdox1536513344 | D | June 20, 2019, 2:22 a.m. | OK | GNU C++11 | TESTS | 29 | 78 | 6041600 | 2700 | |
18176967 | lajiniunai | D | June 1, 2016, 4:56 a.m. | OK | GNU C++11 | TESTS | 29 | 78 | 6144000 | 2700 | |
18233546 | TMC | D | June 3, 2016, 3:35 p.m. | OK | GNU C++11 | TESTS | 29 | 78 | 6246400 | 2700 | |
67940261 | jhzjk | D | Dec. 29, 2019, 11:52 p.m. | OK | GNU C++11 | TESTS | 29 | 78 | 7065600 | 2700 | |
68026285 | CaoRui2019 | D | Jan. 1, 2020, 6:03 a.m. | OK | GNU C++11 | TESTS | 29 | 78 | 20070400 | 2700 | |
55810550 | rng_78 | D | June 20, 2019, 3:24 a.m. | OK | GNU C++11 | TESTS | 29 | 93 | 3993600 | 2700 | |
23660841 | Ali.Pi | D | Jan. 9, 2017, 6:28 a.m. | OK | GNU C++14 | TESTS | 29 | 93 | 5529600 | 2700 | |
27886141 | Footle | D | June 18, 2017, 2:18 p.m. | OK | GNU C++14 | TESTS | 29 | 93 | 6246400 | 2700 | |
35861351 | ______n______ | D | March 2, 2018, 10:01 p.m. | OK | GNU C++14 | TESTS | 29 | 93 | 9420800 | 2700 | |
35861330 | ______u______ | D | March 2, 2018, 10 p.m. | OK | GNU C++14 | TESTS | 29 | 93 | 9420800 | 2700 | |
35860917 | _____i_____ | D | March 2, 2018, 9:52 p.m. | OK | GNU C++14 | TESTS | 29 | 93 | 9420800 | 2700 | |
35860839 | _____k_____ | D | March 2, 2018, 9:50 p.m. | OK | GNU C++14 | TESTS | 29 | 93 | 9420800 | 2700 | |
35857456 | ______h______ | D | March 2, 2018, 8:40 p.m. | OK | GNU C++14 | TESTS | 29 | 93 | 9420800 | 2700 | |
35857451 | ______k______ | D | March 2, 2018, 8:40 p.m. | OK | GNU C++14 | TESTS | 29 | 93 | 9420800 | 2700 | |
35857033 | ______i______ | D | March 2, 2018, 8:33 p.m. | OK | GNU C++14 | TESTS | 29 | 93 | 9420800 | 2700 | |
35854892 | ______M______ | D | March 2, 2018, 7:51 p.m. | OK | GNU C++14 | TESTS | 29 | 93 | 9420800 | 2700 | |
46827794 | vjudge1 | D | Dec. 9, 2018, 7:38 p.m. | OK | GNU C++17 | TESTS | 29 | 93 | 5836800 | 2700 | |
42613839 | vjudge4 | D | Sept. 7, 2018, 12:38 p.m. | OK | GNU C++17 | TESTS | 29 | 93 | 5836800 | 2700 | |
41010976 | _Ore_ | D | July 31, 2018, 12:37 p.m. | OK | GNU C++17 | TESTS | 29 | 108 | 5939200 | 2700 | |
67940250 | Zhou_JK | D | Dec. 29, 2019, 11:52 p.m. | OK | GNU C++17 | TESTS | 29 | 108 | 6963200 | 2700 | |
53606640 | yan-zp | D | May 1, 2019, 10:44 a.m. | OK | GNU C++17 | TESTS | 29 | 109 | 3993600 | 2700 | |
55386866 | ruo | D | June 10, 2019, 7:49 a.m. | OK | GNU C++17 | TESTS | 29 | 109 | 5324800 | 2700 | |
58212655 | llbra9z | D | Aug. 3, 2019, 9:24 a.m. | OK | GNU C++17 | TESTS | 29 | 109 | 6451200 | 2700 | |
67940433 | vjudge3 | D | Dec. 30, 2019, 12:08 a.m. | OK | GNU C++17 | TESTS | 29 | 109 | 7270400 | 2700 | |
60250507 | AM. | D | Sept. 8, 2019, 6:27 a.m. | OK | GNU C++17 | TESTS | 29 | 109 | 10137600 | 2700 | |
63109605 | vjudge1 | D | Oct. 22, 2019, 6:49 a.m. | OK | GNU C++17 | TESTS | 29 | 124 | 6041600 | 2700 | |
7690373 | IgorKoval | D | Sept. 5, 2014, 9:06 p.m. | OK | Java 6 | TESTS | 29 | 2744 | 39116800 | 2700 | |
4666289 | uwi | D | Oct. 4, 2013, 4:31 p.m. | OK | Java 7 | TESTS | 29 | 404 | 4198400 | 2700 | |
4672477 | Petr | D | Oct. 4, 2013, 5:48 p.m. | OK | Java 7 | TESTS | 29 | 592 | 19968000 | 2700 | |
5647106 | xenoslash | D | Jan. 9, 2014, 7:22 p.m. | OK | Java 7 | TESTS | 29 | 624 | 307200 | 2700 | |
4674275 | FattyPenguin | D | Oct. 4, 2013, 7 p.m. | OK | Java 7 | TESTS | 29 | 624 | 6348800 | 2700 | |
4673923 | Egor | D | Oct. 4, 2013, 6:36 p.m. | OK | Java 7 | TESTS | 29 | 810 | 307200 | 2700 | |
5646426 | xenoslash | D | Jan. 9, 2014, 4:54 p.m. | OK | Java 7 | TESTS | 29 | 1060 | 307200 | 2700 | |
4721374 | santjuan | D | Oct. 9, 2013, 11:56 p.m. | OK | Java 7 | TESTS | 29 | 2370 | 3481600 | 2700 | |
4721361 | santjuan | D | Oct. 9, 2013, 11:52 p.m. | OK | Java 7 | TESTS | 29 | 2526 | 3481600 | 2700 | |
7690369 | IgorKoval | D | Sept. 5, 2014, 9:05 p.m. | OK | Java 7 | TESTS | 29 | 2838 | 39116800 | 2700 | |
7690366 | IgorKoval | D | Sept. 5, 2014, 9:05 p.m. | OK | Java 7 | TESTS | 29 | 2868 | 39116800 | 2700 | |
44989747 | gazaan | D | Oct. 28, 2018, 12:13 p.m. | OK | Java 8 | TESTS | 29 | 951 | 20480000 | 2700 | |
11130515 | AlexFetisov | D | May 17, 2015, 11:48 p.m. | OK | Java 8 | TESTS | 29 | 2121 | 30617600 | 2700 | |
15779348 | TillEnd | D | Feb. 4, 2016, 12:35 a.m. | OK | MS C++ | TESTS | 29 | 93 | 3993600 | 2700 | |
15779327 | TillEnd | D | Feb. 4, 2016, 12:33 a.m. | OK | MS C++ | TESTS | 29 | 93 | 3993600 | 2700 | |
4691663 | yaya | D | Oct. 6, 2013, 4:20 p.m. | OK | MS C++ | TESTS | 29 | 156 | 7065600 | 2700 | |
4691605 | yaya | D | Oct. 6, 2013, 4:13 p.m. | OK | MS C++ | TESTS | 29 | 156 | 7065600 | 2700 | |
5822628 | NuM | D | Jan. 28, 2014, 1:11 a.m. | OK | MS C++ | TESTS | 29 | 186 | 6758400 | 2700 | |
4691739 | yaya | D | Oct. 6, 2013, 4:29 p.m. | OK | MS C++ | TESTS | 29 | 186 | 7065600 | 2700 | |
4691593 | yaya | D | Oct. 6, 2013, 4:11 p.m. | OK | MS C++ | TESTS | 29 | 186 | 7168000 | 2700 | |
17897928 | liuyuhong | D | May 14, 2016, 3:52 a.m. | OK | MS C++ | TESTS | 29 | 202 | 7065600 | 2700 | |
17897169 | liuyuhong | D | May 14, 2016, 3:39 a.m. | OK | MS C++ | TESTS | 29 | 202 | 7065600 | 2700 | |
25127429 | DEGwer | D | March 1, 2017, 3:34 p.m. | OK | MS C++ | TESTS | 29 | 202 | 30310400 | 2700 | |
63103907 | vjudge2 | D | Oct. 22, 2019, 3:06 a.m. | OK | MS C++ 2017 | TESTS | 29 | 171 | 5120000 | 2700 |
Back to search problems