結果

問題 No.888 約数の総和
ユーザー dangodango
提出日時 2023-06-13 16:21:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 89 ms / 2,000 ms
コード長 174 bytes
コンパイル時間 444 ms
コンパイル使用メモリ 87,212 KB
実行使用メモリ 76,608 KB
最終ジャッジ日時 2023-09-04 01:34:20
合計ジャッジ時間 5,036 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,672 KB
testcase_01 AC 68 ms
71,704 KB
testcase_02 AC 73 ms
71,780 KB
testcase_03 AC 69 ms
71,412 KB
testcase_04 AC 70 ms
71,568 KB
testcase_05 AC 69 ms
71,740 KB
testcase_06 AC 67 ms
71,544 KB
testcase_07 AC 68 ms
71,552 KB
testcase_08 AC 68 ms
71,688 KB
testcase_09 AC 67 ms
71,716 KB
testcase_10 AC 69 ms
71,732 KB
testcase_11 AC 69 ms
71,720 KB
testcase_12 AC 68 ms
71,656 KB
testcase_13 AC 69 ms
71,456 KB
testcase_14 AC 70 ms
71,568 KB
testcase_15 AC 72 ms
71,812 KB
testcase_16 AC 68 ms
71,760 KB
testcase_17 AC 67 ms
71,688 KB
testcase_18 AC 86 ms
76,084 KB
testcase_19 AC 80 ms
75,960 KB
testcase_20 AC 77 ms
76,084 KB
testcase_21 AC 87 ms
76,608 KB
testcase_22 AC 85 ms
75,960 KB
testcase_23 AC 71 ms
75,952 KB
testcase_24 AC 76 ms
75,956 KB
testcase_25 AC 77 ms
75,952 KB
testcase_26 AC 77 ms
76,056 KB
testcase_27 AC 80 ms
76,236 KB
testcase_28 AC 80 ms
76,056 KB
testcase_29 AC 81 ms
76,100 KB
testcase_30 AC 82 ms
75,976 KB
testcase_31 AC 83 ms
76,240 KB
testcase_32 AC 89 ms
76,068 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
divisors = set()
for i in range(1, int(N ** 0.5) + 1):
    if N % i == 0:
        divisors.add(i)
        divisors.add(int(N / i))
print(sum(list(divisors)))
0