techwiz911's blog

By techwiz911, history, 4 years ago, In English,

I was attempting the following question 310D

Here is my submission that timed-out TLE

And here is my submission that was accepted AC

As you may have observed, the only change I made from the TLE code to AC code was




where "it" is a set iterator.

Just changing this, the time on Test #11 was reduced from >3000ms to 264ms. Can any one shed some light on why this happened? Thank you.

Read more »

  • Vote: I like it
  • -4
  • Vote: I do not like it