結果

問題 No.1748 Parking Lot
ユーザー kohei2019kohei2019
提出日時 2023-06-13 00:46:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 80 ms / 2,000 ms
コード長 120 bytes
コンパイル時間 598 ms
コンパイル使用メモリ 86,952 KB
実行使用メモリ 71,520 KB
最終ジャッジ日時 2023-09-02 17:35:17
合計ジャッジ時間 3,425 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
71,412 KB
testcase_01 AC 77 ms
71,336 KB
testcase_02 AC 78 ms
71,016 KB
testcase_03 AC 77 ms
71,244 KB
testcase_04 AC 77 ms
71,220 KB
testcase_05 AC 78 ms
71,276 KB
testcase_06 AC 79 ms
71,216 KB
testcase_07 AC 78 ms
71,312 KB
testcase_08 AC 77 ms
71,252 KB
testcase_09 AC 77 ms
71,424 KB
testcase_10 AC 79 ms
71,028 KB
testcase_11 AC 79 ms
71,412 KB
testcase_12 AC 78 ms
70,924 KB
testcase_13 AC 77 ms
71,412 KB
testcase_14 AC 77 ms
71,416 KB
testcase_15 AC 78 ms
71,172 KB
testcase_16 AC 79 ms
71,520 KB
testcase_17 AC 79 ms
71,032 KB
testcase_18 AC 77 ms
71,272 KB
testcase_19 AC 78 ms
71,132 KB
testcase_20 AC 78 ms
71,244 KB
testcase_21 AC 79 ms
71,276 KB
testcase_22 AC 78 ms
71,252 KB
testcase_23 AC 78 ms
71,308 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K = map(int,input().split())
if N==K and N==1:
    print(1)
    exit()
if K == N-1:
    print(N)
else:
    print(N-1)
0