cf/mirror

Shortest Path with Obstacle

CF
1547A800· newbie2s512 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
7
 
1 1
3 3
2 2
 
2 5
2 1
2 3
 
1000 42
1000 1
1000 1000
 
1 10
3 10
2 10
 
3 8
7 8
3 7
 
2 1
4 1
1 1
 
1 344
1 10
1 1
Output
4
6
41
4
4
2
334
1547A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)