cf/mirror

Smart Beaver and Resolving Collisions

CF
178C21900· candidate master1s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
10 2 7
+ 11 0
+ 22 2
+ 33 6
+ 44 0
+ 55 0
- 22
+ 66 0
Output
7
Sample 2of 2
Input
5 1 6
+ 123 0
+ 234 1
+ 345 2
- 234
+ 456 0
+ 567 0
Output
4
178C2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)