cf/mirror

Divine Array

CF
1602B1100· newbie2s256 MB⌨ stdin/stdout

Examples

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