cf/mirror

AquaMoon and Two Arrays

CF
1546A800· newbie1s256 MB⌨ stdin/stdout

Examples

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