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 |
|---|---|---|---|---|---|---|
| 345 | Friday the 13th, Programmers Day | FINISHED | False | 7200 | 397318823 | Sept. 13, 2013, 3:40 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 105 ) | G | Suffix Subgroup | PROGRAMMING | *special strings | 2600 |
You are given a group of n strings: s 1 , s 2 , ..., s n . You should find a subgroup s i 1 , s i 2 , ..., s i k (1 ≤ i 1 < i 2 < ... < i k ≤ n ) of the group. The following two conditions must hold: there exists a string t such, that each string from found subgroup is its suffix; the number of strings in the found subgroup is as large as possible. Your task is to print the number of strings in the found subgroup. The first line contains an integer n (1 ≤ n ≤ 10 5 ) — the number of strings in the group. Each of the next n lines contains a string. The i -th line contains non-empty string s i . Each string consists only from lowercase Latin letters. The sum of all strings s i doesn't exceed 10 5 . Output a single integer — the number of strings in the found subgroup. Look at the test sample. The required subgroup is s 1 , s 2 , s 3 . |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 5454282 | Tohka | G | Dec. 17, 2013, 8:55 a.m. | OK | Ada | TESTS | 23 | 62 | 21811200 | 2600 | |
| 45396724 | yongwhan | G | Nov. 7, 2018, 5:17 a.m. | OK | Ada | TESTS | 23 | 62 | 25395200 | 2600 | |
| 14875649 | alishaterian | G | Dec. 19, 2015, 12:44 p.m. | OK | Ada | TESTS | 23 | 62 | 25600000 | 2600 | |
| 14296879 | Mr.Amir | G | Nov. 16, 2015, 11:44 a.m. | OK | Ada | TESTS | 23 | 62 | 25600000 | 2600 | |
| 14053387 | Bera | G | Nov. 4, 2015, 8:26 a.m. | OK | Ada | TESTS | 23 | 62 | 25600000 | 2600 | |
| 13835927 | Deidara2002 | G | Oct. 25, 2015, 8:54 a.m. | OK | Ada | TESTS | 23 | 62 | 25600000 | 2600 | |
| 10401217 | hasann | G | March 22, 2015, 2:03 p.m. | OK | Ada | TESTS | 23 | 62 | 25600000 | 2600 | |
| 9977895 | Marry_me_Marusja | G | Feb. 24, 2015, 7:36 a.m. | OK | Ada | TESTS | 23 | 62 | 25600000 | 2600 | |
| 9385440 | Recos | G | Jan. 8, 2015, 10:56 a.m. | OK | Ada | TESTS | 23 | 62 | 25600000 | 2600 | |
| 5605333 | ErdemKirez | G | Jan. 2, 2014, 3:18 p.m. | OK | Ada | TESTS | 23 | 62 | 25600000 | 2600 |
Back to search problems