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 |
---|---|---|---|---|---|---|
1063 | Codeforces Round 516 (Div. 1, by Moscow Team Olympiad) | FINISHED | False | 7200 | 192311699 | Oct. 14, 2018, 10:05 a.m. |
Solved$ |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
---|---|---|---|---|---|---|
( 888 ) | F | String Journey | PROGRAMMING | data structures dp string suffix structures | 3000 |
B'We call a sequence of strings t1, xe2 x80 x89..., xe2 x80 x89tk a journey of length k, if for each i xe2 x80 x89> xe2 x80 x891 ti is a substring of ti xe2 x80 x89- xe2 x80 x891 and length of ti is strictly less than length of ti xe2 x80 x89- xe2 x80 x891. For example, {ab, xe2 x80 x89b} is a journey, but {ab, xe2 x80 x89c} and {a, xe2 x80 x89a} are not. Define a journey on string s as journey t1, xe2 x80 x89..., xe2 x80 x89tk, such that all its parts can be nested inside s in such a way that there exists a sequence of strings u1, xe2 x80 x89..., xe2 x80 x89uk xe2 x80 x89+ xe2 x80 x891 (each of these strings can be empty) and s xe2 x80 x89= xe2 x80 x89u1 xe2 x80 x89t1 xe2 x80 x89u2 xe2 x80 x89t2... uk xe2 x80 x89tk xe2 x80 x89uk xe2 x80 x89+ xe2 x80 x891. As an example, {ab, xe2 x80 x89b} is a journey on string abb, but not on bab because the journey strings ti should appear from the left to the right. The length of a journey on a string is the number of strings in it. Determine the maximum possible length of a journey on the given string s. The first line contains a single integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89500 xe2 x80 x89000) -- the length of string s. The second line contains the string s itself, consisting of n lowercase Latin letters. Print one number -- the maximum possible length of string journey on s. In the first sample, the string journey of maximum length is {abcd, xe2 x80 x89bc, xe2 x80 x89c}. In the second sample, one of the suitable journeys is {bb, xe2 x80 x89b}. '... |
Editorial |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
---|---|---|---|---|---|---|---|---|---|---|---|
64198077 | luogu_bot5 | F | Nov. 4, 2019, 10:29 a.m. | OK | GNU C++11 | TESTS | 63 | 343 | 217395200 | 3000 | |
54620530 | __23333 | F | May 25, 2019, 12:04 p.m. | OK | GNU C++11 | TESTS | 63 | 358 | 217395200 | 3000 | |
44620229 | emoairx | F | Oct. 21, 2018, 5:50 a.m. | OK | GNU C++11 | TESTS | 63 | 499 | 48947200 | 3000 | |
58066566 | luogu_bot5 | F | July 31, 2019, 9:07 a.m. | OK | GNU C++11 | TESTS | 63 | 514 | 217395200 | 3000 | |
46279089 | Althen | F | Nov. 27, 2018, 12:26 p.m. | OK | GNU C++11 | TESTS | 63 | 529 | 169779200 | 3000 | |
51569987 | Isonan | F | March 20, 2019, 11:14 a.m. | OK | GNU C++11 | TESTS | 63 | 529 | 177561600 | 3000 | |
44473416 | CMXRYNP | F | Oct. 18, 2018, 7:33 a.m. | OK | GNU C++11 | TESTS | 63 | 592 | 169881600 | 3000 | |
51260177 | 207M | F | March 13, 2019, 1 p.m. | OK | GNU C++11 | TESTS | 63 | 638 | 269516800 | 3000 | |
56713304 | dushaolong | F | July 8, 2019, 1:32 p.m. | OK | GNU C++11 | TESTS | 63 | 639 | 267366400 | 3000 | |
55184711 | luogu_bot1 | F | June 6, 2019, 2:34 a.m. | OK | GNU C++11 | TESTS | 63 | 670 | 269516800 | 3000 | |
58249713 | Scut82 | F | Aug. 4, 2019, 7:16 a.m. | OK | GNU C++14 | TESTS | 63 | 249 | 84172800 | 3000 | |
44473034 | neal | F | Oct. 18, 2018, 7:21 a.m. | OK | GNU C++14 | TESTS | 63 | 264 | 85094400 | 3000 | |
44376084 | neal | F | Oct. 15, 2018, 9:33 p.m. | OK | GNU C++14 | TESTS | 63 | 311 | 85094400 | 3000 | |
44539942 | tmwilliamlin168 | F | Oct. 19, 2018, 10:59 a.m. | OK | GNU C++14 | TESTS | 63 | 374 | 39014400 | 3000 | |
44620221 | luogu_bot1 | F | Oct. 21, 2018, 5:49 a.m. | OK | GNU C++14 | TESTS | 63 | 390 | 49049600 | 3000 | |
44682217 | Wearry | F | Oct. 22, 2018, 7:14 a.m. | OK | GNU C++14 | TESTS | 63 | 405 | 45158400 | 3000 | |
47299875 | MAKE_XJ_GREAT_AGAIN | F | Dec. 20, 2018, 1:43 p.m. | OK | GNU C++14 | TESTS | 63 | 405 | 49561600 | 3000 | |
44443978 | kingsnow | F | Oct. 17, 2018, 1:13 p.m. | OK | GNU C++14 | TESTS | 63 | 420 | 47206400 | 3000 | |
44620207 | luogu_bot3 | F | Oct. 21, 2018, 5:49 a.m. | OK | GNU C++14 | TESTS | 63 | 420 | 49152000 | 3000 | |
44620203 | luogu_bot4 | F | Oct. 21, 2018, 5:49 a.m. | OK | GNU C++14 | TESTS | 63 | 420 | 49152000 | 3000 | |
44751268 | ReaLNero1 | F | Oct. 23, 2018, 8:04 p.m. | OK | GNU C++17 | TESTS | 63 | 280 | 239718400 | 3000 | |
44528675 | FizzyDavid | F | Oct. 19, 2018, 5:04 a.m. | OK | GNU C++17 | TESTS | 63 | 280 | 239718400 | 3000 | |
44736695 | kczno1 | F | Oct. 23, 2018, 1:05 p.m. | OK | GNU C++17 | TESTS | 63 | 358 | 24780800 | 3000 | |
48016687 | Dalgerok | F | Jan. 5, 2019, 11:52 p.m. | OK | GNU C++17 | TESTS | 63 | 451 | 50790400 | 3000 | |
48016654 | Dalgerok | F | Jan. 5, 2019, 11:50 p.m. | OK | GNU C++17 | TESTS | 63 | 452 | 43520000 | 3000 | |
46305080 | pedrofreire | F | Nov. 28, 2018, 9:38 a.m. | OK | GNU C++17 | TESTS | 63 | 514 | 48742400 | 3000 | |
44476649 | joker_in | F | Oct. 18, 2018, 9:20 a.m. | OK | GNU C++17 | TESTS | 63 | 592 | 49459200 | 3000 | |
44476482 | joker_in | F | Oct. 18, 2018, 9:15 a.m. | OK | GNU C++17 | TESTS | 63 | 639 | 49459200 | 3000 | |
56713261 | SYCstudio | F | July 8, 2019, 1:31 p.m. | OK | GNU C++17 | TESTS | 63 | 670 | 259481600 | 3000 | |
44476079 | joker_in | F | Oct. 18, 2018, 9:01 a.m. | OK | GNU C++17 | TESTS | 63 | 748 | 58880000 | 3000 | |
68282489 | Harpae | F | Jan. 5, 2020, 5:26 p.m. | OK | Java 8 | TESTS | 63 | 4976 | 529612800 | 3000 |
Back to search problems