結果
問題 | No.1737 One to N |
ユーザー |
|
提出日時 | 2022-06-22 15:31:13 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 28 ms / 2,000 ms |
コード長 | 225 bytes |
コンパイル時間 | 105 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-10-15 20:01:13 |
合計ジャッジ時間 | 2,032 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
ソースコード
from collections import defaultdictn=int(input())m=int(n**0.5)+1d=defaultdict(int)for i in range(2,m):if n%i==0:while n%i==0:d[i]+=1n//=iif n!=1:d[n]+=1ans=0for e in d:ans+=e*d[e]print(ans)