結果

問題 No.1052 電子機器X
ユーザー koba-e964koba-e964
提出日時 2021-09-27 01:51:46
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 132 bytes
コンパイル時間 1,273 ms
コンパイル使用メモリ 87,184 KB
実行使用メモリ 71,568 KB
最終ジャッジ日時 2023-09-19 04:27:32
合計ジャッジ時間 3,467 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,316 KB
testcase_01 WA -
testcase_02 AC 75 ms
71,316 KB
testcase_03 AC 76 ms
71,332 KB
testcase_04 AC 74 ms
71,528 KB
testcase_05 AC 74 ms
71,224 KB
testcase_06 WA -
testcase_07 AC 75 ms
71,112 KB
testcase_08 AC 77 ms
71,540 KB
testcase_09 WA -
testcase_10 AC 75 ms
71,132 KB
testcase_11 AC 74 ms
71,396 KB
testcase_12 AC 74 ms
71,464 KB
testcase_13 WA -
testcase_14 AC 75 ms
71,244 KB
testcase_15 AC 76 ms
71,396 KB
testcase_16 AC 76 ms
71,568 KB
testcase_17 AC 74 ms
71,160 KB
testcase_18 AC 76 ms
71,248 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3

n, k = map(int, input().split())
if n % 2 == 0:
    print(min(n / 2, k + 1))
else:
    print(min(n, k + 1))
0