結果

問題 No.888 約数の総和
ユーザー tter4tter4
提出日時 2019-09-20 22:35:01
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 173 bytes
コンパイル時間 247 ms
コンパイル使用メモリ 87,112 KB
実行使用メモリ 76,352 KB
最終ジャッジ日時 2023-10-12 20:09:32
合計ジャッジ時間 4,062 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,620 KB
testcase_01 AC 71 ms
71,552 KB
testcase_02 AC 72 ms
71,460 KB
testcase_03 WA -
testcase_04 AC 69 ms
71,784 KB
testcase_05 WA -
testcase_06 AC 70 ms
71,524 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 72 ms
71,624 KB
testcase_10 WA -
testcase_11 AC 72 ms
71,852 KB
testcase_12 AC 72 ms
71,816 KB
testcase_13 AC 71 ms
71,468 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 70 ms
71,676 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 84 ms
75,912 KB
testcase_20 WA -
testcase_21 AC 89 ms
76,120 KB
testcase_22 AC 88 ms
76,092 KB
testcase_23 WA -
testcase_24 AC 78 ms
76,068 KB
testcase_25 WA -
testcase_26 AC 81 ms
76,116 KB
testcase_27 AC 84 ms
76,244 KB
testcase_28 AC 85 ms
76,052 KB
testcase_29 WA -
testcase_30 AC 85 ms
75,972 KB
testcase_31 WA -
testcase_32 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

n = int(input())

divnum = []
for i in range(1, int(math.sqrt(n))+1):
    if n % i == 0:
        divnum.append(i)
        divnum.append(n//i)
print(sum(divnum))
0