https://www.codechef.com/problems/GROADS

https://www.codechef.com/problems/GROADS

plz Help me how to approach this problem its difficult to understand how to implement , sorry newbie here