cf/mirror

Array Game

CF
1076G3000· legendary gm6s512 MB⌨ stdin/stdout

Examples

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