1 / 5
Jun 2018

For instance, the TL of a problem is 3 seconds, but my submission runs in 16.97 and gets AC.

  • created

    Jun '18
  • last reply

    Jul '18
  • 4

    replies

  • 1.3k

    views

  • 2

    users

  • 1

    link

It’s not for problem, it’s for only one test. In problem can be for example ten tests, then summarized TL will be 30 seconds. I don’t know how is in this particular problem, how many tests for example and it’s not so simple but its only example.

Thank you for a fast response!
I am talking about this2 problem. It seems like there are 10 tests, so if I understood correctly the sum of times of execution on each test should be <= 30 seconds. But that means that if there is only one worst case test a program can run much more than 3 seconds and get AC.

No, each test must finish in 3 second and after that, time is summarized. If any of test overtime TL [not finish in 3 sec] immediately will be stoped by SPOJ and after run all test, result will be TLE.