結果

問題 No.1422 Social Distance in Train
ユーザー miya145592miya145592
提出日時 2023-05-10 00:45:11
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 36 ms / 2,000 ms
コード長 75 bytes
コンパイル時間 262 ms
コンパイル使用メモリ 82,456 KB
実行使用メモリ 53,292 KB
最終ジャッジ日時 2024-05-04 19:04:37
合計ジャッジ時間 1,167 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
52,692 KB
testcase_01 AC 33 ms
52,544 KB
testcase_02 AC 32 ms
52,836 KB
testcase_03 AC 34 ms
51,872 KB
testcase_04 AC 32 ms
53,276 KB
testcase_05 AC 33 ms
53,292 KB
testcase_06 AC 32 ms
52,820 KB
testcase_07 AC 32 ms
52,052 KB
testcase_08 AC 36 ms
52,532 KB
testcase_09 AC 34 ms
52,216 KB
testcase_10 AC 32 ms
52,428 KB
testcase_11 AC 32 ms
52,628 KB
testcase_12 AC 31 ms
52,008 KB
testcase_13 AC 30 ms
52,744 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
if N%2==1:
    print(1)
    exit()
ans = N//2+1
print(ans)
0