cf/mirror

Jumping on Tiles

CF
1729C1100· newbie1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
6
logic
codeforces
bca
aaaaaaaaaaa
adbaadabad
to
Output
9 4
1 4 3 5
16 10
1 8 3 4 9 5 2 6 7 10
1 2
1 3
0 11
1 8 10 4 3 5 7 2 9 6 11
3 10
1 9 5 4 7 3 8 6 2 10
5 2
1 2
1729C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)