結果

問題 No.888 約数の総和
ユーザー osrgy01
提出日時 2021-04-04 10:21:56
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 117 bytes
コンパイル時間 399 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 20,864 KB
最終ジャッジ日時 2024-12-26 15:57:18
合計ジャッジ時間 48,385 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 14 WA * 1 TLE * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
ans=set()
for i in range(1,n):
    if n%i==0:
        ans.add(i)
        ans.add(n//i)
print(sum(ans))
0