結果

問題 No.888 約数の総和
ユーザー fV9TwBhUoa9S3eV
提出日時 2019-10-30 15:10:57
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 267 bytes
コンパイル時間 310 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 16,000 KB
最終ジャッジ日時 2024-09-14 21:51:41
合計ジャッジ時間 5,253 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 15 TLE * 1 -- * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

# No.888 約数の総和
n = int(input())
divisors = []

if n == 1:
    divisors = [1]
elif n < 4:
    divisors = [1, n]
else:
    divisors = [1, n]
    for i in range(2, n):
        if n % i == 0:
            divisors.append(i)

print(divisors)
print(sum(divisors))
0