結果

問題 No.1052 電子機器X
ユーザー 👑 H20H20
提出日時 2021-06-24 11:46:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 68 ms / 1,000 ms
コード長 95 bytes
コンパイル時間 879 ms
コンパイル使用メモリ 86,948 KB
実行使用メモリ 71,552 KB
最終ジャッジ日時 2023-09-07 13:21:47
合計ジャッジ時間 2,971 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
71,108 KB
testcase_01 AC 62 ms
71,240 KB
testcase_02 AC 68 ms
71,156 KB
testcase_03 AC 63 ms
71,368 KB
testcase_04 AC 64 ms
71,200 KB
testcase_05 AC 67 ms
71,536 KB
testcase_06 AC 63 ms
71,260 KB
testcase_07 AC 62 ms
71,292 KB
testcase_08 AC 64 ms
71,300 KB
testcase_09 AC 65 ms
71,224 KB
testcase_10 AC 64 ms
71,236 KB
testcase_11 AC 63 ms
71,252 KB
testcase_12 AC 62 ms
71,340 KB
testcase_13 AC 65 ms
71,552 KB
testcase_14 AC 64 ms
71,432 KB
testcase_15 AC 64 ms
71,224 KB
testcase_16 AC 65 ms
71,308 KB
testcase_17 AC 64 ms
71,360 KB
testcase_18 AC 64 ms
71,168 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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