結果

問題 No.1748 Parking Lot
ユーザー roarisroaris
提出日時 2021-11-19 22:09:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 43 ms / 2,000 ms
コード長 187 bytes
コンパイル時間 204 ms
コンパイル使用メモリ 82,524 KB
実行使用メモリ 55,504 KB
最終ジャッジ日時 2025-01-01 18:02:12
合計ジャッジ時間 1,952 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

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