[HELP] Getting TLE in Problem 747E Comments (round #387)

Revision en1, by sam96, 2017-06-10 00:30:29

I have written an O(n) solution using DFS but still i am getting TLE on test number 29. I don't understand why and hence i am unable to resolve the issue. I also tried using fast cin and cout but still i am getting TLE. Here is the link to the problem and link to my solution.

Tags dfs and similar, expression parsing, time limit exceeded

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English sam96 2017-06-10 00:30:29 410 Initial revision (published)