Stuck on a codechef problem

Правка en1, от skpro19, 2016-03-21 03:59:26

The problem is Chef and Frogs. I have solved it using DFS and I am getting a WA. Can someone please point out the error ?

My solution is My Solution

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский skpro19 2016-03-21 19:12:31 27
en1 Английский skpro19 2016-03-21 03:59:26 275 Initial revision (published)