結果

問題 No.888 約数の総和
ユーザー buriburi
提出日時 2019-10-15 09:51:38
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 189 bytes
コンパイル時間 389 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-12-26 12:13:56
合計ジャッジ時間 5,443 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15 RE * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
N = int(input())
sq = math.floor(math.sqrt(N))
sum = 0
for p in range(1,sq + 1):
    if N%p == 0:
        sum += p
        sum += int(N/p)
if N == sq**2:
    um -= sq
print(sum)
0