cf/mirror

A-Z Graph

CF
1494E2400· grandmaster2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
3 11
+ 1 2 a
+ 2 3 b
+ 3 2 a
+ 2 1 b
? 3
? 2
- 2 1
- 3 2
+ 2 1 c
+ 3 2 d
? 5
Output
YES
NO
YES
1494E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…