cf/gym-101755H Safe Path 【BFS】 http://codeforces.com/gym/101755/problem/H HDU-1045 Fire Net https://vjudge.net/contest/283487#problem/F
http://codeforces.com/gym/101755/problem/H
https://vjudge.net/contest/283487#problem/F