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 |
---|---|---|---|---|---|---|
1329 | Codeforces Round 631 (Div. 1) - Thanks, Denis aramis Shitov! | FINISHED | False | 7200 | 151428311 | April 3, 2020, 2:35 p.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 481 ) | D | Dreamoon Likes Strings | PROGRAMMING | constructive algorithms data structures | 3000 |
B"Dreamoon likes strings. Today he created a game about strings: String s_1, s_2, ldots, s_n is beautiful if and only if for each 1 <= i < n, s_i ne s_{i+1} . Initially, Dreamoon has a string a . In each step Dreamoon can choose a beautiful substring of a and remove it. Then he should concatenate the remaining characters (in the same order). Dreamoon wants to use the smallest number of steps to make a empty. Please help Dreamoon, and print any sequence of the smallest number of steps to make a empty. The first line contains an integer t ( 1 <= q t <= q 200 ,000 ), denoting the number of test cases in the input. For each test case, there's one line with a non-empty string of lowercase Latin letters a . The total sum of lengths of strings in all test cases is at most 200 ,000 . For each test case, in the first line, you should print m : the smallest number of steps to make a empty. Each of the following m lines should contain two integers l_i, r_i ( 1 <= q l_i <= q r_i <= q |a| ), denoting, that the i -th step is removing the characters from index l_i to r_i in the current string. (indices are numbered starting from 1 ). Note that after the deletion of the substring, indices of remaining characters may change, and r_i should be at most the current length of a . If there are several possible solutions, you can print any. "... |
Codeforces Round #631 Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
75801022 | jintiandun | D | April 8, 2020, 4:26 a.m. | OK | GNU C11 | TESTS | 48 | 1294 | 5222400 | 3000 | |
75462917 | spacevortex | D | April 4, 2020, 7:20 a.m. | OK | GNU C++11 | TESTS | 48 | 93 | 3379200 | 3000 | |
75819480 | cmwqf | D | April 8, 2020, 9:30 a.m. | OK | GNU C++11 | TESTS | 48 | 93 | 5836800 | 3000 | |
75708386 | Frame233 | D | April 7, 2020, 3:27 a.m. | OK | GNU C++11 | TESTS | 48 | 93 | 6758400 | 3000 | |
75451282 | dream__catcher | D | April 4, 2020, 3:45 a.m. | OK | GNU C++11 | TESTS | 48 | 93 | 18534400 | 3000 | |
75451334 | dream__catcher | D | April 4, 2020, 3:46 a.m. | OK | GNU C++11 | TESTS | 48 | 93 | 18534400 | 3000 | |
75451741 | lzoilxy | D | April 4, 2020, 3:57 a.m. | OK | GNU C++11 | TESTS | 48 | 93 | 37273600 | 3000 | |
75993054 | caoyue | D | April 9, 2020, 1:07 p.m. | OK | GNU C++11 | TESTS | 48 | 109 | 12902400 | 3000 | |
75640121 | dqa2020 | D | April 6, 2020, 9:06 a.m. | OK | GNU C++11 | TESTS | 48 | 124 | 3481600 | 3000 | |
75407247 | gisp_zjz | D | April 3, 2020, 4:20 p.m. | OK | GNU C++11 | TESTS | 48 | 124 | 18534400 | 3000 | |
75451256 | dream__catcher | D | April 4, 2020, 3:44 a.m. | OK | GNU C++11 | TESTS | 48 | 124 | 18534400 | 3000 | |
75475350 | mayaohua2003 | D | April 4, 2020, 10:19 a.m. | OK | GNU C++14 | TESTS | 48 | 93 | 4198400 | 3000 | |
75407920 | tlwpdus | D | April 3, 2020, 4:22 p.m. | OK | GNU C++14 | TESTS | 48 | 93 | 10444800 | 3000 | |
75448735 | ccf_n0i | D | April 4, 2020, 2:38 a.m. | OK | GNU C++14 | TESTS | 48 | 108 | 8089600 | 3000 | |
76068377 | ILoLy | D | April 10, 2020, 8:11 a.m. | OK | GNU C++14 | TESTS | 48 | 109 | 57651200 | 3000 | |
75409435 | wucstdio | D | April 3, 2020, 4:25 p.m. | OK | GNU C++14 | TESTS | 48 | 124 | 10035200 | 3000 | |
75643017 | Quang | D | April 6, 2020, 9:50 a.m. | OK | GNU C++14 | TESTS | 48 | 124 | 13414400 | 3000 | |
75442450 | SaSoriSaYOra | D | April 3, 2020, 11:07 p.m. | OK | GNU C++14 | TESTS | 48 | 139 | 17612800 | 3000 | |
75636368 | aaaaajack | D | April 6, 2020, 8:09 a.m. | OK | GNU C++14 | TESTS | 48 | 140 | 14643200 | 3000 | |
75636527 | aaaaajack | D | April 6, 2020, 8:11 a.m. | OK | GNU C++14 | TESTS | 48 | 155 | 14745600 | 3000 | |
75745635 | Rubblsh12345 | D | April 7, 2020, 12:55 p.m. | OK | GNU C++14 | TESTS | 48 | 155 | 16691200 | 3000 | |
75459226 | CMXRYNP | D | April 4, 2020, 6:27 a.m. | OK | GNU C++17 | TESTS | 48 | 77 | 6656000 | 3000 | |
75659972 | jiangly | D | April 6, 2020, 1:21 p.m. | OK | GNU C++17 | TESTS | 48 | 77 | 8294400 | 3000 | |
76053165 | Pappu_kumar | D | April 10, 2020, 3:57 a.m. | OK | GNU C++17 | TESTS | 48 | 78 | 2662400 | 3000 | |
75674473 | hakkung | D | April 6, 2020, 4:07 p.m. | OK | GNU C++17 | TESTS | 48 | 78 | 2662400 | 3000 | |
76004088 | aarre_ | D | April 9, 2020, 2:54 p.m. | OK | GNU C++17 | TESTS | 48 | 78 | 2662400 | 3000 | |
75546148 | Mr.Robot_28 | D | April 5, 2020, 7:59 a.m. | OK | GNU C++17 | TESTS | 48 | 93 | 2662400 | 3000 | |
75822811 | jintiandun | D | April 8, 2020, 10:18 a.m. | OK | GNU C++17 | TESTS | 48 | 93 | 5017600 | 3000 | |
75713810 | Marckess | D | April 7, 2020, 5:35 a.m. | OK | GNU C++17 | TESTS | 48 | 93 | 7372800 | 3000 | |
75442378 | amethyst0 | D | April 3, 2020, 11:04 p.m. | OK | GNU C++17 | TESTS | 48 | 109 | 3686400 | 3000 | |
75428433 | majk | D | April 3, 2020, 7:03 p.m. | OK | GNU C++17 | TESTS | 48 | 109 | 11264000 | 3000 | |
75921522 | neal | D | April 8, 2020, 6:52 p.m. | OK | GNU C++17 (64) | TESTS | 48 | 46 | 6860800 | 3000 | |
75803536 | neal | D | April 8, 2020, 5:22 a.m. | OK | GNU C++17 (64) | TESTS | 48 | 46 | 7987200 | 3000 | |
75922378 | neal | D | April 8, 2020, 7 p.m. | OK | GNU C++17 (64) | TESTS | 48 | 77 | 6656000 | 3000 | |
75921098 | neal | D | April 8, 2020, 6:48 p.m. | OK | GNU C++17 (64) | TESTS | 48 | 77 | 6860800 | 3000 | |
75920566 | neal | D | April 8, 2020, 6:43 p.m. | OK | GNU C++17 (64) | TESTS | 48 | 77 | 6860800 | 3000 | |
75411387 | jiangly | D | April 3, 2020, 4:29 p.m. | OK | GNU C++17 (64) | TESTS | 48 | 77 | 8806400 | 3000 | |
75919758 | neal | D | April 8, 2020, 6:36 p.m. | OK | GNU C++17 (64) | TESTS | 48 | 78 | 6656000 | 3000 | |
75920416 | neal | D | April 8, 2020, 6:42 p.m. | OK | GNU C++17 (64) | TESTS | 48 | 78 | 7475200 | 3000 | |
75806069 | neal | D | April 8, 2020, 6:09 a.m. | OK | GNU C++17 (64) | TESTS | 48 | 78 | 7884800 | 3000 | |
75919734 | neal | D | April 8, 2020, 6:36 p.m. | OK | GNU C++17 (64) | TESTS | 48 | 93 | 7884800 | 3000 | |
75508022 | cwise | D | April 4, 2020, 5:20 p.m. | OK | Java 8 | TESTS | 48 | 296 | 47718400 | 3000 |
Back to search problems