結果
| 問題 | No.2750 Number of Prime Factors |
| ユーザー |
|
| 提出日時 | 2024-05-10 21:37:34 |
| 言語 | PyPy3 (8.0.1 + ACL) |
| 結果 |
MLE
不安定
|
| 実行時間 | - |
| コード長 | 281 bytes |
| 記録 | |
| コンパイル時間 | 146 ms |
| コンパイル使用メモリ | 82,960 KB |
| 実行使用メモリ | 843,060 KB |
| 最終ジャッジ日時 | 2026-10-05 01:37:24 |
| 合計ジャッジ時間 | 33,107 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | MLE * 2 |
| other | MLE * 19 |
ソースコード
n=int(input())
ans=0
tmp=1
prime = [True for i in range(10**8+1)]
p = 2
while (p * p <= n):
if (prime[p] == True):
tmp*=p
if tmp<=n:
ans+=1
else:
exit(print(ans))
for i in range(p * 2, 10**8+1, p):
prime[i] = False
p += 1
print(ans)