結果

問題 No.1052 電子機器X
ユーザー koba-e964koba-e964
提出日時 2021-09-27 01:53:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 82 ms / 1,000 ms
コード長 133 bytes
コンパイル時間 1,228 ms
コンパイル使用メモリ 86,596 KB
実行使用メモリ 71,320 KB
最終ジャッジ日時 2023-09-19 04:27:36
合計ジャッジ時間 2,893 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
70,828 KB
testcase_01 AC 76 ms
70,984 KB
testcase_02 AC 77 ms
71,320 KB
testcase_03 AC 80 ms
71,020 KB
testcase_04 AC 79 ms
71,216 KB
testcase_05 AC 75 ms
70,992 KB
testcase_06 AC 75 ms
71,188 KB
testcase_07 AC 80 ms
71,100 KB
testcase_08 AC 78 ms
71,104 KB
testcase_09 AC 80 ms
70,832 KB
testcase_10 AC 79 ms
71,236 KB
testcase_11 AC 77 ms
70,840 KB
testcase_12 AC 77 ms
71,024 KB
testcase_13 AC 79 ms
70,984 KB
testcase_14 AC 80 ms
71,180 KB
testcase_15 AC 81 ms
70,992 KB
testcase_16 AC 82 ms
70,844 KB
testcase_17 AC 80 ms
71,032 KB
testcase_18 AC 77 ms
71,120 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