Getting TLE on a dfs problem
Difference between en1 and en2, changed 12 character(s)
I am getting a TLE on this [problem](http://codeforces.me/contest/404/problem/C) using DFS. This is my ![ [submission](http://codeforces.me/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)