結果
| 問題 |
No.2750 Number of Prime Factors
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-05-23 17:50:50 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 226 bytes |
| コンパイル時間 | 200 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 84,736 KB |
| 最終ジャッジ日時 | 2024-12-20 18:55:50 |
| 合計ジャッジ時間 | 3,358 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 RE * 1 |
| other | WA * 10 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(ans) else: ans *= i count += 1 print(count)