cf/mirror

Light Switches

CF
1993C1400· specialist2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
9
4 4
2 3 4 5
4 3
2 3 4 5
4 3
3 4 8 9
3 3
6 2 1
1 1
1
7 5
14 34 6 25 46 7 17
6 5
40 80 99 60 90 50
6 5
64 40 50 68 70 10
2 1
1 1000000000
Output
5
-1
10
8
1
47
100
-1
-1
1993C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)