結果
問題 |
No.2750 Number of Prime Factors
|
ユーザー |
|
提出日時 | 2024-05-23 17:52:09 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 214 bytes |
コンパイル時間 | 196 ms |
コンパイル使用メモリ | 82,152 KB |
実行使用メモリ | 84,772 KB |
最終ジャッジ日時 | 2024-12-20 18:55:57 |
合計ジャッジ時間 | 2,900 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 RE * 1 |
other | AC * 2 WA * 8 RE * 9 |
ソースコード
N = int(input()) ans = 1 dat = [0] * (10 ** 6) count = 0 C = 10 ** 6 for i in range(2,N): if dat[i] == 0: for j in range(i,C,i): dat[j] = 1 if ans * i > N: print(count) else: ans *= i count += 1