shantol's blog

By shantol, history, 4 years ago, In English

These two codes are exactly same,,but I don't know why one code got accepted but another is getting TLE

The code got AC: https://codeforces.net/contest/1501/submission/109903610

The code, getting TLE: https://codeforces.net/contest/1501/submission/110064601

someone pls explain why?

Tags ac, tle, same, why
  • Vote: I like it
  • -2
  • Vote: I do not like it

| Write comment?
»
4 years ago, # |
  Vote: I like it +6 Vote: I do not like it

New test cases were probably added after the contest. Many of the AC solutions during the contest are getting TLE'd.

  • »
    »
    4 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    No, Both of the codes were submitted after the contest

    • »
      »
      »
      4 years ago, # ^ |
      Rev. 2   Vote: I like it +9 Vote: I do not like it

      When someone up-hacks any submission, then that test case gets publicly added to that question.

      • »
        »
        »
        »
        4 years ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        Owwh, Thanks everyone, I have understood