The Fair Nut and the Best Path

Problem Name:
The Fair Nut and the Best Path
Site:CodeForces
Links:
Tags:
Problem setters: