Please read the new rule regarding the restriction on the use of AI tools. ×

Problem regarding Codeforces time limit

Revision en2, by white_square, 2023-05-28 12:50:26

Hey,

I tried solving problem 96B - Lucky Numbers (easy) and it gave me very strange TLE.

My submission 207541848 got TLE at n=10^9, but the same test case passes codeforces custom test compiler with a time of 1300ms (approximated).

As the time limit is 2second, Why am i getting TLE on main test?

 Custom test time limit picture

Now the rest of the solution is right and fits under the time limit. I just made a special case with n=10^9 and passed the main test. 207553081

Please help me figuring out what's happening wrong.

Thank you

white_square

Tags white_square, java, tle

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en5 English white_square 2023-05-28 12:54:51 0 (published)
en4 English white_square 2023-05-28 12:54:18 32
en3 English white_square 2023-05-28 12:53:03 96
en2 English white_square 2023-05-28 12:50:26 8
en1 English white_square 2023-05-28 12:49:17 688 Initial revision (saved to drafts)