結果

問題 No.1748 Parking Lot
ユーザー yukihira_pot
提出日時 2021-11-19 22:09:15
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 592 bytes
コンパイル時間 1,257 ms
コンパイル使用メモリ 161,136 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2025-01-01 18:00:53
合計ジャッジ時間 2,213 ms
ジャッジサーバーID
(参考情報)
judge4 / judge7
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 21 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

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

using ll = long long;
using Graph = vector<vector<int> >;
using PI = pair<int, int>;
using PL = pair<ll, ll>;

#define rep(i, a, b) for(int i = a; i < b; i++)
#define rep_ll(i, a, b) for(ll i = a; i < b; i++)
#define rrep(i, a, b) for(int i = a; i >= b; i--)
#define fore(i, a) for(auto &i:a)
#define all(x) (x).begin(),(x).end()

const int INFI = 1 << 29;
const ll INFL = 1LL << 59;

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);

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