結果
| 問題 |
No.3159 Just Answer 10 Integers!
|
| コンテスト | |
| ユーザー |
detteiuu
|
| 提出日時 | 2025-05-23 19:43:10 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 35 ms / 2,000 ms |
| コード長 | 439 bytes |
| コンパイル時間 | 351 ms |
| コンパイル使用メモリ | 82,112 KB |
| 実行使用メモリ | 53,756 KB |
| 最終ジャッジ日時 | 2025-05-23 19:43:11 |
| 合計ジャッジ時間 | 1,154 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 9 |
ソースコード
def eratosthenes(n):
sieve = [True] * (n + 1)
for i in range(int(n**0.5) + 1):
if i < 2:
sieve[i] = False
elif sieve[i]:
for j in range(2, n//i + 1):
sieve[i * j] = False
ans = []
for i in range(n+1):
if sieve[i]:
ans.append(i)
return ans
N = int(input())
E = eratosthenes(23)
A = [223092870]
for e in E:
A.append(A[0]//e)
print(*A[:N])
detteiuu