結果
問題 |
No.1748 Parking Lot
|
ユーザー |
|
提出日時 | 2021-11-19 21:53:52 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 377 bytes |
コンパイル時間 | 1,760 ms |
コンパイル使用メモリ | 165,524 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-31 23:17:49 |
合計ジャッジ時間 | 2,957 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 21 WA * 1 |
ソースコード
#include<bits/stdc++.h> #define REP(i,n) for(int i=0,i##_len=int(n);i<i##_len;++i) #define rep(i,a,b) for(int i=int(a);i<int(b);++i) #define All(x) (x).begin(),(x).end() #define rAll(x) (x).rbegin(),(x).rend() using namespace std; using ll = long long; int main(){ int N,K; cin>>N>>K; int ans; if( K == N-1 ) ans = N; else ans = N-1; cout<<ans<<endl; }