結果

問題 No.278 連続する整数の和(2)
ユーザー tktk_snsntktk_snsn
提出日時 2020-12-22 00:27:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 61 ms / 2,000 ms
コード長 173 bytes
コンパイル時間 172 ms
コンパイル使用メモリ 81,756 KB
実行使用メモリ 59,796 KB
最終ジャッジ日時 2023-10-21 12:12:53
合計ジャッジ時間 2,114 ms
ジャッジサーバーID
(参考情報)
judge15 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
53,676 KB
testcase_01 AC 40 ms
53,504 KB
testcase_02 AC 57 ms
57,676 KB
testcase_03 AC 40 ms
53,676 KB
testcase_04 AC 40 ms
53,676 KB
testcase_05 AC 44 ms
57,680 KB
testcase_06 AC 43 ms
57,676 KB
testcase_07 AC 45 ms
59,796 KB
testcase_08 AC 61 ms
57,680 KB
testcase_09 AC 56 ms
57,676 KB
testcase_10 AC 60 ms
57,676 KB
testcase_11 AC 56 ms
57,680 KB
testcase_12 AC 41 ms
53,504 KB
testcase_13 AC 53 ms
57,680 KB
testcase_14 AC 51 ms
57,676 KB
testcase_15 AC 53 ms
57,680 KB
testcase_16 AC 51 ms
57,680 KB
testcase_17 AC 57 ms
57,676 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