cf/mirror

Roads in E City

CF
1819E3200· legendary gm3s256 MB⇄ interactive

Examples

Sample 1of 1
Input
2
2 2
1 2
2 1
 
 
1
 
0
 
 
 
1
 
1
3 3
1 2
2 3
3 1
 
 
1
 
1
 
 
1
 
0
 
 
1
 
1
 
1
 
1
Output
- 1
? 1
 
? 2
 
- 2
+ 1
? 1
 
! 1 0
 
 
 
 
 
- 1
? 2
 
? 1
 
- 2
? 3
 
? 3
 
+ 1
? 3
 
? 2
 
? 1
 
! 1 1 1
1819E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…