結果

問題 No.888 約数の総和
ユーザー na-shna-sh
提出日時 2019-10-17 17:23:44
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 104 bytes
コンパイル時間 425 ms
コンパイル使用メモリ 10,604 KB
実行使用メモリ 14,980 KB
最終ジャッジ日時 2023-09-07 01:34:40
合計ジャッジ時間 5,891 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
12,368 KB
testcase_01 AC 16 ms
7,832 KB
testcase_02 AC 24 ms
7,828 KB
testcase_03 WA -
testcase_04 AC 16 ms
7,852 KB
testcase_05 WA -
testcase_06 AC 16 ms
7,772 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 26 ms
7,888 KB
testcase_10 WA -
testcase_11 AC 41 ms
7,828 KB
testcase_12 AC 42 ms
7,928 KB
testcase_13 AC 47 ms
7,740 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 87 ms
7,760 KB
testcase_17 WA -
testcase_18 TLE -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

ans = sum(x + N // x for x in range(N, int(N ** 0.5), -1) if N % x == 0)

print(ans)

0