Getting TLE onOptimisation needed for a dfs problem
Difference between en2 and en3, changed 23 character(s)
I am getting a TLE on this [problem](http://mirror.codeforces.com/contest/404/problem/C) using DFS. This is my [submission](http://mirror.codeforces.com/contest/404/submission/30168369). Can someone suggest some optimizations?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English skpro19 2017-09-07 12:40:48 23
en2 English skpro19 2017-09-07 11:28:10 12 Tiny change: 'his is my ![ ](http://c' -> 'his is my [submission](http://c'
en1 English skpro19 2017-09-07 11:27:34 232 Initial revision (published)