結果

問題 No.1422 Social Distance in Train
ユーザー kept1994kept1994
提出日時 2021-08-28 01:52:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 146 bytes
コンパイル時間 175 ms
コンパイル使用メモリ 81,840 KB
実行使用メモリ 53,496 KB
最終ジャッジ日時 2024-05-01 06:56:16
合計ジャッジ時間 1,337 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
52,276 KB
testcase_01 AC 38 ms
52,316 KB
testcase_02 AC 39 ms
51,824 KB
testcase_03 AC 39 ms
53,296 KB
testcase_04 AC 37 ms
52,364 KB
testcase_05 AC 36 ms
53,496 KB
testcase_06 AC 37 ms
52,316 KB
testcase_07 AC 36 ms
52,744 KB
testcase_08 AC 37 ms
52,244 KB
testcase_09 AC 38 ms
51,760 KB
testcase_10 AC 37 ms
53,384 KB
testcase_11 AC 37 ms
52,564 KB
testcase_12 AC 36 ms
53,136 KB
testcase_13 AC 36 ms
53,216 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
import sys


def main():
    N = int(input())
    print(1 if N % 2 else N // 2 + 1)


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