結果

問題 No.1052 電子機器X
ユーザー tanon710tanon710
提出日時 2020-05-15 22:43:08
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 99 bytes
コンパイル時間 781 ms
コンパイル使用メモリ 81,668 KB
実行使用メモリ 53,388 KB
最終ジャッジ日時 2023-10-19 15:46:54
合計ジャッジ時間 2,350 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 36 ms
53,388 KB
testcase_02 WA -
testcase_03 AC 36 ms
53,388 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 36 ms
53,388 KB
testcase_07 AC 36 ms
53,388 KB
testcase_08 WA -
testcase_09 AC 36 ms
53,388 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 37 ms
53,388 KB
testcase_14 WA -
testcase_15 AC 37 ms
53,388 KB
testcase_16 AC 38 ms
53,388 KB
testcase_17 AC 36 ms
53,388 KB
testcase_18 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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