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

Bad input limits in A of the recent contest

Revision en1, by aastik231205, 2024-09-30 09:16:18

There seems to be quite bad limits set in problem A of the recent contest such that a brute force approach is passing using one set of operations but getting TLE using another set of operations both giving same Big O complexity. The two submissions are :-

Here is the submission getting TLE and here is the one getting Accepted.

Literally the only difference is that in one code there is an extra division in place of many multiplications in the TLE submission. Look I know integer division is slow but still either both of them should pass or both should fail.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English aastik231205 2024-09-30 09:16:18 742 Initial revision (published)