Can you answer my questions?
I'm trying to solve this problem about 3 days.I understood solution but solution doesn't say how to do that trick.
Upd:Problem:to count number of ways of shortest path from node a to node b in the graph.(Graph can be weighted and unweighted).
BOI(Balkan olympiad in informatics)