https://codeforces.net/gym/101992/problem/H
I was solving this problem by BFS from start node and checking what is the max edge while moving to level K.
I dont know why codeforces sample gives me a lot of zero. while on my codeblocks give me 104 and 7 ... anyone know where is the problem ?