cf/mirror

Sonya and Queries

CF
713A1400· specialist1s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
12
+ 1
+ 241
? 1
+ 361
- 241
? 0101
+ 101
? 101
- 101
? 101
+ 4000
? 0
Output
2
1
2
1
1
Sample 2of 2
Input
4
+ 200
+ 200
- 200
? 0
Output
1
713A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)