Incorrect Time Limits on June Long Challenge

Some of the problems in the June Long Challenge (such as UNIONSET) say that the required runtime is 1 second. But when I get a TLE, it says my program ran for 2.01 seconds before timing out. So, is the limit 1 second or 2 seconds?

As far as I see, you have submitted solutions in JAVA.

Generally, all the problems have time limit multiplied by constant based on programming language (2x for JAVA). You can know about it more here.

Hence, your time limit was 2 seconds, and not 1 second.

Happy programming! :slight_smile:

3 Likes

Ah. I did not know about this before. Thank you!

Yeah java need 2x time being a slow lang, rather if you do it in cpp you will observe the exceed on nearly 1 sec.