結果

問題 No.278 連続する整数の和(2)
ユーザー tktk_snsntktk_snsn
提出日時 2020-12-22 00:27:02
言語 PyPy3
(7.3.8)
結果
AC  
実行時間 88 ms / 2,000 ms
コード長 173 bytes
コンパイル時間 237 ms
使用メモリ 81,076 KB
最終ジャッジ日時 2022-11-20 13:00:47
合計ジャッジ時間 3,078 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 68 ms
76,208 KB
testcase_01 AC 67 ms
75,688 KB
testcase_02 AC 86 ms
80,656 KB
testcase_03 AC 69 ms
76,160 KB
testcase_04 AC 69 ms
76,044 KB
testcase_05 AC 72 ms
80,808 KB
testcase_06 AC 72 ms
80,816 KB
testcase_07 AC 74 ms
80,988 KB
testcase_08 AC 86 ms
80,680 KB
testcase_09 AC 84 ms
80,820 KB
testcase_10 AC 88 ms
80,832 KB
testcase_11 AC 86 ms
80,672 KB
testcase_12 AC 70 ms
75,784 KB
testcase_13 AC 85 ms
81,076 KB
testcase_14 AC 81 ms
80,680 KB
testcase_15 AC 83 ms
80,696 KB
testcase_16 AC 78 ms
80,612 KB
testcase_17 AC 84 ms
80,664 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
if N % 2 == 0:
    N //= 2

div = set()
for i in range(1, int(N ** 0.5) + 1):
    if N % i == 0:
        div.add(i)
        div.add(N // i)

print(sum(div))
0