Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

NotBessieTheCow's blog

By NotBessieTheCow, history, 4 years ago, In English

Hello,

My program continually TLEs on test case 10 (https://codeforces.com/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?
»
4 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.