Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

Bad input limits in A of the recent contest

Правка en1, от 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.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский aastik231205 2024-09-30 09:16:18 742 Initial revision (published)