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 | 236894123 | Oct. 14, 2018, 10:05 a.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 1009 ) | F | String Journey | PROGRAMMING | data structures dp string suffix structures | 3000 |
We call a sequence of strings t1, ..., tk a journey of length k, if for each i > 1 ti is a substring of ti - 1 and length of ti is strictly less than length of ti - 1. For example, {ab, b} is a journey, but {ab, c} and {a, a} are not. Define a journey on string s as journey t1, ..., tk, such that all its parts can be nested inside s in such a way that there exists a sequence of strings u1, ..., uk + 1 (each of these strings can be empty) and s = u1 t1 u2 t2... uk tk uk + 1. As an example, {ab, b} 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 ≤ n ≤ 500 000) -- 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, bc, c}. In the second sample, one of the suitable journeys is {bb, b}. |
| 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