cf/mirror

Interacdive Problem

CF
1624F2000· candidate master1s256 MB⇄ interactive

Examples

Sample 1of 3
Input
3
 
1
Output
+ 1
 
! 3
Sample 2of 3
Input
5
 
0
 
0
 
1
Output
+ 1
 
+ 1
 
+ 1
 
! 5
Sample 3of 3
Input
10
 
0
 
0
 
1
 
2
Output
+ 2
 
+ 2
 
+ 3
 
+ 8
 
! 20
1624F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)