結果

問題 No.278 連続する整数の和(2)
ユーザー fmhrfmhr
提出日時 2015-10-15 09:48:53
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 148 bytes
コンパイル時間 800 ms
コンパイル使用メモリ 10,648 KB
実行使用メモリ 7,996 KB
最終ジャッジ日時 2023-09-28 21:11:32
合計ジャッジ時間 4,233 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,988 KB
testcase_01 WA -
testcase_02 AC 292 ms
7,848 KB
testcase_03 AC 15 ms
7,836 KB
testcase_04 AC 15 ms
7,784 KB
testcase_05 AC 22 ms
7,832 KB
testcase_06 AC 23 ms
7,988 KB
testcase_07 AC 27 ms
7,776 KB
testcase_08 WA -
testcase_09 AC 276 ms
7,836 KB
testcase_10 AC 352 ms
7,808 KB
testcase_11 AC 386 ms
7,832 KB
testcase_12 WA -
testcase_13 AC 328 ms
7,852 KB
testcase_14 AC 180 ms
7,776 KB
testcase_15 AC 284 ms
7,892 KB
testcase_16 AC 225 ms
7,856 KB
testcase_17 AC 288 ms
7,836 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
if N%2==1:
    a = N
else:
    a = N/2
ans = 0
i = 1
while i**2<=a:
    if a%i==0:
        ans += i+a/i
    i += 1

print(int(ans))
0