a puzzle game

edges

#1

can anyone explain me this problem
https://www.codechef.com/problems/H1


#2

i found this might hekp you link text


#3

i found this might hekp you link text