cf/mirror

Pumping Lemma

CF
1909G3000· legendary gm2s1024 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
4 8
abcd
abcbcbcd
Output
1
Sample 2of 3
Input
3 5
aaa
aaaaa
Output
5
Sample 3of 3
Input
12 16
abbababacaab
abbababababacaab
Output
8
1909G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)