結果
問題 | No.3079 アルベド |
ユーザー | lloyz |
提出日時 | 2021-11-18 22:01:49 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 251 ms / 2,000 ms |
コード長 | 321 bytes |
コンパイル時間 | 249 ms |
コンパイル使用メモリ | 87,200 KB |
実行使用メモリ | 79,348 KB |
最終ジャッジ日時 | 2023-08-27 16:29:16 |
合計ジャッジ時間 | 3,387 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 120 ms
78,924 KB |
testcase_01 | AC | 251 ms
79,136 KB |
testcase_02 | AC | 185 ms
79,176 KB |
testcase_03 | AC | 169 ms
79,212 KB |
testcase_04 | AC | 212 ms
79,044 KB |
testcase_05 | AC | 178 ms
79,036 KB |
testcase_06 | AC | 209 ms
79,036 KB |
testcase_07 | AC | 116 ms
79,092 KB |
testcase_08 | AC | 124 ms
79,096 KB |
testcase_09 | AC | 171 ms
79,348 KB |
ソースコード
Primes = [1 for _ in range(10**5 + 1)] Primes[0] = Primes[1] = 0 for i in range(2, 10**5 + 1): if Primes[i] == 0: continue for j in range(2 * i, 10**5 + 1, i): Primes[j] = 0 for i in range(10**5): Primes[i + 1] += Primes[i] t = int(input()) for _ in range(t): print(Primes[int(input())])