NotBessieTheCow's blog

By NotBessieTheCow, history, 5 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?
»
5 years ago, # |
  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.