Скоро Codeforces Round 1133 (Div. 1, Div. 2)! Регистрация здесь. ×
Missing test case in 2173C
Разница между en1 и en2, 8 символ(ов) изменены
[Problem link](https://codeforces.me/contest/2173/problem/C)↵
↵
[My solution that is supposed to get a TLE but got AC instead](https://codeforces.me/contest/2173/submission/364229054)↵
↵
Generator script for the test case that could trigger a TLE:↵
↵
~~~~~↵
from math import isqrt↵
N=10**
76↵
sieve=[True]*(N+1)↵
for i in range(2,isqrt(N)+1):↵
    if not sieve[i]:continue↵
    for j in range(i**2,N+1,i):↵
        sieve[j]=False↵
sieve[0]=sieve[1]=False↵
primes=[x for x in range(2,N) if sieve[x]]↵
print(1)↵
print(len(primes),1
000000)↵
print(*primes)↵
~~~~~↵
↵

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский jothin 2026-02-24 22:05:21 8 corrected to match problem constraints
en1 Английский jothin 2026-02-24 21:56:49 583 Initial revision (published)