cf/mirror

Nearly Shortest Repeating Substring

CF
1950E1500· specialist2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
5
4
abaa
4
abba
13
slavicgslavic
8
hshahaha
20
stormflamestornflame
Output
1
4
13
2
10
1950E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)