cf/mirror

Many Equal Substrings

CF
1029A1300· pupil1s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
3 4
aba
Output
ababababa
Sample 2of 2
Input
3 2
cat
Output
catcat
1029A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)