cf/mirror

Game of Scientists (Version 1)

CF
2174E13100· legendary gm2s1024 MB⇄ interactive

Examples

Sample 1of 1
Input
3 4 4000000000000000000
 
1
 
1
 
7
 
1
 
-1
 
1
 
-1
 
6
 
6
 
1
Output
? 10
 
? 1000
 
? 2
 
! 1000000
 
? 2
 
! 1
 
? 100
 
? 10
 
? 5
 
! 42
2174E1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)