cf/mirror

Binary Search

CF
1945E1700· expert2s256 MB⌨ stdin/stdout

Examples

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