cf/mirror

Game of Scientists (Version 2)

CF
2174E23200· legendary gm2s1024 MB⇄ interactive

Examples

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