結果

問題 No.888 約数の総和
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2022-05-07 10:47:46
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 91 ms / 2,000 ms
コード長 139 bytes
コンパイル時間 273 ms
コンパイル使用メモリ 86,968 KB
実行使用メモリ 76,684 KB
最終ジャッジ日時 2023-09-20 19:46:11
合計ジャッジ時間 4,210 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,720 KB
testcase_01 AC 71 ms
71,688 KB
testcase_02 AC 71 ms
71,744 KB
testcase_03 AC 71 ms
71,276 KB
testcase_04 AC 72 ms
71,692 KB
testcase_05 AC 71 ms
71,696 KB
testcase_06 AC 70 ms
71,672 KB
testcase_07 AC 71 ms
71,688 KB
testcase_08 AC 71 ms
71,780 KB
testcase_09 AC 70 ms
71,868 KB
testcase_10 AC 71 ms
71,728 KB
testcase_11 AC 71 ms
71,468 KB
testcase_12 AC 73 ms
71,444 KB
testcase_13 AC 72 ms
71,696 KB
testcase_14 AC 72 ms
71,692 KB
testcase_15 AC 71 ms
71,568 KB
testcase_16 AC 72 ms
71,892 KB
testcase_17 AC 71 ms
71,808 KB
testcase_18 AC 88 ms
76,252 KB
testcase_19 AC 85 ms
75,924 KB
testcase_20 AC 81 ms
76,180 KB
testcase_21 AC 91 ms
76,684 KB
testcase_22 AC 88 ms
75,924 KB
testcase_23 AC 74 ms
76,124 KB
testcase_24 AC 79 ms
76,132 KB
testcase_25 AC 82 ms
76,424 KB
testcase_26 AC 82 ms
76,100 KB
testcase_27 AC 86 ms
76,024 KB
testcase_28 AC 85 ms
76,120 KB
testcase_29 AC 85 ms
76,380 KB
testcase_30 AC 87 ms
76,092 KB
testcase_31 AC 87 ms
76,036 KB
testcase_32 AC 87 ms
75,872 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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