cf/mirror

Ksyusha and the Loaded Set

CF
2000H2200· master3s512 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
3
5
1 2 5 905 2000000
15
- 2
? 2
? 1
- 1
? 1
+ 4
+ 2
? 2
+ 6
- 4
+ 7
? 2
? 3
? 4
? 2000000
5
3 4 5 6 8
9
? 5
- 5
? 5
+ 1
? 2
- 6
- 8
+ 6
? 5
5
6 7 8 9 10
10
? 5
- 6
? 4
- 10
+ 5
- 8
+ 3
+ 2
- 3
+ 10
Output
2 2 1 6 3 8 8 2000001
9 9 9 7
1 1
2000H.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)