cf/mirror

Locate

CF
2168B3s256 MB⇄ interactive

Examples

Sample 1of 2
Input
first
3
3
3 2 1
5
1 2 3 4 5
5
4 2 3 5 1
Output
0
0
1
Sample 2of 2
Input
second
3
3 0
 
2
 
1
 
1
 
5 1
 
2
 
5 0
 
4
 
0
Output
? 1 3
 
? 1 2
 
? 2 3
 
! 1
 
? 1 2
 
! 4
 
? 1 5
 
? 5 5
 
! 5
2168B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)