結果

問題 No.1737 One to N
ユーザー tobusakana
提出日時 2022-11-25 22:57:03
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 46 ms / 2,000 ms
コード長 130 bytes
コンパイル時間 266 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 57,856 KB
最終ジャッジ日時 2024-10-02 05:29:46
合計ジャッジ時間 2,517 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
ans = 0
for i in range(2, N + 1):
    while N % i == 0:
        ans += i
        N //= i
        
print(ans)
    
0