can we solve this problem https://codeforces.com/contest/96/problem/D using a single bfs with state (money, remaining distance)?
BFS
can we solve this problem https://codeforces.com/contest/96/problem/D using a single bfs with state (money, remaining distance)?