結果

問題 No.888 約数の総和
ユーザー tails1434tails1434
提出日時 2019-12-31 21:06:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 47 ms / 2,000 ms
コード長 320 bytes
コンパイル時間 291 ms
コンパイル使用メモリ 82,428 KB
実行使用メモリ 59,684 KB
最終ジャッジ日時 2024-04-30 17:53:56
合計ジャッジ時間 2,515 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
52,648 KB
testcase_01 AC 32 ms
53,524 KB
testcase_02 AC 32 ms
53,712 KB
testcase_03 AC 31 ms
52,768 KB
testcase_04 AC 32 ms
52,604 KB
testcase_05 AC 32 ms
53,348 KB
testcase_06 AC 32 ms
52,612 KB
testcase_07 AC 34 ms
54,464 KB
testcase_08 AC 34 ms
52,344 KB
testcase_09 AC 33 ms
52,740 KB
testcase_10 AC 39 ms
53,184 KB
testcase_11 AC 34 ms
53,244 KB
testcase_12 AC 34 ms
52,572 KB
testcase_13 AC 32 ms
52,524 KB
testcase_14 AC 32 ms
52,596 KB
testcase_15 AC 33 ms
53,112 KB
testcase_16 AC 32 ms
52,412 KB
testcase_17 AC 33 ms
52,620 KB
testcase_18 AC 47 ms
58,368 KB
testcase_19 AC 43 ms
58,516 KB
testcase_20 AC 40 ms
58,768 KB
testcase_21 AC 46 ms
59,684 KB
testcase_22 AC 45 ms
57,916 KB
testcase_23 AC 36 ms
59,232 KB
testcase_24 AC 40 ms
57,784 KB
testcase_25 AC 41 ms
58,968 KB
testcase_26 AC 41 ms
58,684 KB
testcase_27 AC 44 ms
58,056 KB
testcase_28 AC 44 ms
58,052 KB
testcase_29 AC 44 ms
58,252 KB
testcase_30 AC 45 ms
57,756 KB
testcase_31 AC 47 ms
59,156 KB
testcase_32 AC 47 ms
58,844 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def divisor(N):
    ass = []
    for i in range(1, int(N ** 0.5) + 1):
        if N % i == 0:
            ass.append(i)

            if i * i == N:
                continue
            ass.append(N // i)

    return ass

def main():
    N = int(input())
    print(sum(divisor(N)))


if __name__ == "__main__":
    main()
0