結果

問題 No.1737 One to N
ユーザー kfield1950
提出日時 2021-11-18 15:35:17
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 139 bytes
コンパイル時間 180 ms
コンパイル使用メモリ 81,976 KB
実行使用メモリ 57,728 KB
最終ジャッジ日時 2024-12-26 06:22:52
合計ジャッジ時間 2,470 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
i = 2
cnt = 0
while i <= n:
    if n%i == 0:
        cnt += i
        n = n//i
        continue
    i += 1
    
print(cnt)
0