結果

問題 No.888 約数の総和
ユーザー roarisroaris
提出日時 2019-09-20 21:29:33
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 93 ms / 2,000 ms
コード長 166 bytes
コンパイル時間 317 ms
コンパイル使用メモリ 87,336 KB
実行使用メモリ 76,412 KB
最終ジャッジ日時 2023-10-12 17:55:47
合計ジャッジ時間 4,232 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,472 KB
testcase_01 AC 73 ms
71,556 KB
testcase_02 AC 73 ms
71,460 KB
testcase_03 AC 73 ms
71,180 KB
testcase_04 AC 72 ms
71,616 KB
testcase_05 AC 70 ms
71,324 KB
testcase_06 AC 70 ms
71,664 KB
testcase_07 AC 71 ms
71,788 KB
testcase_08 AC 73 ms
71,788 KB
testcase_09 AC 73 ms
71,716 KB
testcase_10 AC 73 ms
71,468 KB
testcase_11 AC 72 ms
71,324 KB
testcase_12 AC 72 ms
71,808 KB
testcase_13 AC 71 ms
71,468 KB
testcase_14 AC 71 ms
71,720 KB
testcase_15 AC 71 ms
71,656 KB
testcase_16 AC 72 ms
71,528 KB
testcase_17 AC 70 ms
71,672 KB
testcase_18 AC 88 ms
76,216 KB
testcase_19 AC 85 ms
76,064 KB
testcase_20 AC 83 ms
76,056 KB
testcase_21 AC 88 ms
76,172 KB
testcase_22 AC 87 ms
76,372 KB
testcase_23 AC 73 ms
76,028 KB
testcase_24 AC 80 ms
75,944 KB
testcase_25 AC 84 ms
76,200 KB
testcase_26 AC 82 ms
76,120 KB
testcase_27 AC 87 ms
76,168 KB
testcase_28 AC 87 ms
76,160 KB
testcase_29 AC 89 ms
76,144 KB
testcase_30 AC 88 ms
76,412 KB
testcase_31 AC 90 ms
76,100 KB
testcase_32 AC 93 ms
76,032 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
ans = 0

for i in range(1, int(N**0.5)+1):
    if N % i == 0:
        ans += i
        
        if i != N//i:
            ans += N//i
    
print(ans)
0