結果

問題 No.888 約数の総和
ユーザー buriburiburiburi
提出日時 2019-10-15 09:51:38
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 189 bytes
コンパイル時間 474 ms
コンパイル使用メモリ 10,652 KB
実行使用メモリ 8,064 KB
最終ジャッジ日時 2023-08-27 04:21:03
合計ジャッジ時間 4,331 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,816 KB
testcase_01 AC 16 ms
7,888 KB
testcase_02 AC 16 ms
8,036 KB
testcase_03 RE -
testcase_04 AC 16 ms
8,020 KB
testcase_05 RE -
testcase_06 AC 16 ms
7,816 KB
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 16 ms
7,924 KB
testcase_10 RE -
testcase_11 AC 17 ms
8,036 KB
testcase_12 AC 16 ms
7,928 KB
testcase_13 AC 16 ms
7,888 KB
testcase_14 RE -
testcase_15 RE -
testcase_16 AC 16 ms
8,044 KB
testcase_17 RE -
testcase_18 RE -
testcase_19 AC 120 ms
7,980 KB
testcase_20 RE -
testcase_21 AC 150 ms
8,032 KB
testcase_22 AC 153 ms
8,016 KB
testcase_23 RE -
testcase_24 AC 73 ms
7,856 KB
testcase_25 RE -
testcase_26 AC 86 ms
7,856 KB
testcase_27 AC 120 ms
7,888 KB
testcase_28 AC 124 ms
7,852 KB
testcase_29 RE -
testcase_30 AC 130 ms
7,880 KB
testcase_31 RE -
testcase_32 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
N = int(input())
sq = math.floor(math.sqrt(N))
sum = 0
for p in range(1,sq + 1):
    if N%p == 0:
        sum += p
        sum += int(N/p)
if N == sq**2:
    um -= sq
print(sum)
0