結果
問題 |
No.2750 Number of Prime Factors
|
ユーザー |
|
提出日時 | 2024-05-16 13:17:33 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 273 bytes |
コンパイル時間 | 353 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 21,760 KB |
最終ジャッジ日時 | 2024-12-20 10:56:22 |
合計ジャッジ時間 | 13,759 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 2 WA * 13 TLE * 4 |
ソースコード
N = int(input()) factors = {} i = 2 while N > 1: count = 0 while N % i == 0: N //= i count += 1 if count > 0: factors[i] = count i += 1 if N > 1: factors[N] = 1 max_count = max(factors.values(), default=0) print(max_count)