Timeout in 546 D

Правка en1, от Kuber, 2023-07-12 06:53:27

Hi everyone, Please review my submission: https://codeforces.net/problemset/submission/546/213448834

The logic is exactly the same as that of the person who got the first position in the contest. I'm unable to understand how to change the solution to get AC.

Теги #number theory, primes, sieve of eratosthenes

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский Kuber 2023-07-12 08:50:48 50 Tiny change: 'to get AC.' -> 'to get AC.\n\nEdit: Changed cout to printf and cin to scanf.'
en1 Английский Kuber 2023-07-12 06:53:27 279 Initial revision (published)