Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

NotBessieTheCow's blog

By NotBessieTheCow, history, 7 years ago, In English

Hello,

My program continually TLEs on test case 10 (https://codeforces.me/contest/1344/submission/79225885) and I have no clue why. My code has passed larger cases quickly and I've yet to find bugs leading to infinite loops.

Any help would be greatly appreciated

  • Vote: I like it
  • +15
  • Vote: I do not like it

| Write comment?
»
7 years ago, hide # |
 
Vote: I like it +5 Vote: I do not like it

If I'm not mistaken, in isDAG you don't do anything with vis2, so your program could easily explode to be exponential.