結果
問題 |
No.2750 Number of Prime Factors
|
ユーザー |
|
提出日時 | 2024-05-23 17:53:22 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 223 bytes |
コンパイル時間 | 257 ms |
コンパイル使用メモリ | 82,816 KB |
実行使用メモリ | 65,792 KB |
最終ジャッジ日時 | 2024-12-20 18:55:59 |
合計ジャッジ時間 | 2,131 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 WA * 1 |
ソースコード
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) break else: ans *= i count += 1