cf/mirror

Needle in a Numstack

CF
2108D2200· master3s256 MB⇄ interactive

Examples

Sample 1of 1
Input
6
5 2
 
1
 
2
 
2
 
18 4
 
2
 
4
 
1
 
1
 
4
 
3 1
 
10 5
 
9 3
 
3
 
3
 
2
 
12 4
 
1
 
3
 
1
 
3
 
1
 
3
Output
? 1
 
? 2
 
? 3
 
! 2 3
 
? 9
 
? 13
 
? 10
 
? 14
 
? 6
 
! 9 9
 
! -1
 
! 5 5
 
? 3
 
? 6
 
? 9
 
! 6 3
 
? 1
 
? 2
 
? 5
 
? 6
 
? 9
 
? 10
 
! -1
2108D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)