cf/mirror

Dances (Easy version)

CF
1883G11400· specialist3s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
4
2 1
1
3 2
4 1
5 1 5
3 8 3 3
8 1
4 3 3 2 2 1 1
1 1 1 1 3 3 3 3
9 1
9 2 8 3 7 4 6 5
1 2 3 2 1 4 5 6 5
Output
0
1
4
4
1883G1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)