cf/mirror

Tennis Game

CF
496D1900· candidate master2s256 MB⌨ stdin/stdout

Examples

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