結果

問題 No.276 連続する整数の和(1)
ユーザー tamatotamato
提出日時 2021-01-09 20:50:29
言語 PyPy3
(7.3.8)
結果
AC  
実行時間 66 ms / 1,000 ms
コード長 217 bytes
コンパイル時間 282 ms
使用メモリ 76,176 KB
最終ジャッジ日時 2022-12-25 04:09:42
合計ジャッジ時間 1,813 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 64 ms
76,160 KB
testcase_01 AC 66 ms
76,112 KB
testcase_02 AC 66 ms
76,060 KB
testcase_03 AC 64 ms
76,040 KB
testcase_04 AC 63 ms
75,876 KB
testcase_05 AC 63 ms
76,100 KB
testcase_06 AC 61 ms
76,072 KB
testcase_07 AC 62 ms
75,940 KB
testcase_08 AC 62 ms
76,092 KB
testcase_09 AC 62 ms
76,176 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 1000000007
eps = 10**-9


def main():
    import sys
    input = sys.stdin.readline
    
    N = int(input())
    if N & 1:
        print(N)
    else:
        print(N//2)


if __name__ == '__main__':
    main()
0