結果

問題 No.1748 Parking Lot
ユーザー ぷら
提出日時 2021-11-19 21:28:18
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 249 bytes
コンパイル時間 1,981 ms
コンパイル使用メモリ 192,040 KB
最終ジャッジ日時 2025-01-25 19:57:51
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 21 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
    int n,k;
    cin >> n >> k;
    if(k == n) {
        cout << n-1 << endl;
    }
    else if(k == n-1) {
        cout << n << endl;
    }
    else {
        cout << n-1 << endl;
    }
}
0