結果

問題 No.888 約数の総和
ユーザー motor_radial
提出日時 2020-03-09 21:17:37
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 197 ms / 2,000 ms
コード長 137 bytes
コンパイル時間 79 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 11,392 KB
最終ジャッジ日時 2024-11-14 07:31:54
合計ジャッジ時間 3,916 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
ans=set()
for i in range(1,int(N**0.5)+1):
    if N%i==0:
        ans.add(i)
        ans.add(N//i)  
print(sum(list(ans)))
0