cf/mirror

Repetitions Decoding

CF
1641B2000· candidate master1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
4
2
5 7
2
5 5
6
1 3 1 2 2 3
6
3 2 1 1 2 3
Output
-1
0
1
2
4
1 3
5 3
5 3
10 3
2
8 6
5
0 3
8 3
5 3
6 2
7 1
4
2 6 6 2
1641B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)