結果
| 問題 | No.9005 実行時間/使用メモリテスト(テスト用) |
| ユーザー |
はむ吉🐹
|
| 提出日時 | 2016-08-24 11:54:41 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 538 bytes |
| 記録 | |
| コンパイル時間 | 623 ms |
| コンパイル使用メモリ | 20,696 KB |
| 実行使用メモリ | 22,876 KB |
| 最終ジャッジ日時 | 2026-05-08 08:58:27 |
| 合計ジャッジ時間 | 20,161 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 3 TLE * 2 |
ソースコード
#!/usr/bin/env python3
import array
N = 5000000
def sieve_of_eratosthenes(end, typecode="L"):
assert end > 1
is_prime = array.array("B", (True for i in range(end)))
is_prime[0] = False
is_prime[1] = False
primes = array.array(typecode)
for i in range(2, end):
if is_prime[i]:
primes.append(i)
for j in range(2 * i, end, i):
is_prime[j] = False
return primes
def main():
_ = sieve_of_eratosthenes(N)
print(0)
if __name__ == '__main__':
main()
はむ吉🐹