結果

問題 No.278 連続する整数の和(2)
ユーザー niyarinniyarin
提出日時 2016-11-08 18:06:53
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 153 bytes
コンパイル時間 410 ms
コンパイル使用メモリ 6,784 KB
実行使用メモリ 818,816 KB
最終ジャッジ日時 2024-05-03 23:24:42
合計ジャッジ時間 2,021 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
6,272 KB
testcase_01 AC 12 ms
6,272 KB
testcase_02 AC 12 ms
6,272 KB
testcase_03 WA -
testcase_04 AC 19 ms
8,064 KB
testcase_05 MLE -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = input()

if N%2:
    print N+1
else:
    v = N / 2
    ans = 0
    for i in range(1,v+1):
        if (v%i == 0):
            ans += i
    print ans

0