結果
問題 |
No.2750 Number of Prime Factors
|
ユーザー |
|
提出日時 | 2024-05-10 21:37:04 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 323 bytes |
コンパイル時間 | 257 ms |
コンパイル使用メモリ | 82,384 KB |
実行使用メモリ | 54,176 KB |
最終ジャッジ日時 | 2024-12-20 04:38:38 |
合計ジャッジ時間 | 1,982 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 WA * 6 |
ソースコード
primes = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59] le = len(primes) for i in range(le-1): primes[i+1] *= primes[i] # print(primes) n = int(input()) if n <= 5: print(1) exit() for i in range(le): if primes[i] < n: pass else: print(i) exit() print(15)