結果

問題 No.1748 Parking Lot
ユーザー roarisroaris
提出日時 2021-11-19 22:09:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 94 ms / 2,000 ms
コード長 187 bytes
コンパイル時間 506 ms
コンパイル使用メモリ 87,084 KB
実行使用メモリ 71,884 KB
最終ジャッジ日時 2023-08-30 08:43:21
合計ジャッジ時間 3,842 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 90 ms
71,844 KB
testcase_01 AC 94 ms
71,884 KB
testcase_02 AC 90 ms
71,748 KB
testcase_03 AC 87 ms
71,628 KB
testcase_04 AC 89 ms
71,744 KB
testcase_05 AC 89 ms
71,564 KB
testcase_06 AC 89 ms
71,776 KB
testcase_07 AC 87 ms
71,512 KB
testcase_08 AC 90 ms
71,624 KB
testcase_09 AC 89 ms
71,612 KB
testcase_10 AC 88 ms
71,772 KB
testcase_11 AC 89 ms
71,724 KB
testcase_12 AC 92 ms
71,860 KB
testcase_13 AC 91 ms
71,676 KB
testcase_14 AC 91 ms
71,832 KB
testcase_15 AC 90 ms
71,720 KB
testcase_16 AC 89 ms
71,664 KB
testcase_17 AC 90 ms
71,668 KB
testcase_18 AC 89 ms
71,404 KB
testcase_19 AC 89 ms
71,620 KB
testcase_20 AC 90 ms
71,476 KB
testcase_21 AC 92 ms
71,832 KB
testcase_22 AC 89 ms
71,600 KB
testcase_23 AC 88 ms
71,704 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
from collections import *

N, K = map(int, input().split())

if N==1:
    print(1)
else:
    if K==N-1:
        print(N)
    else:
        print(N-1)
0