結果
| 問題 | 
                            No.1748 Parking Lot
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2022-09-27 17:43:04 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 17 ms / 2,000 ms | 
| コード長 | 215 bytes | 
| コンパイル時間 | 1,863 ms | 
| コンパイル使用メモリ | 192,324 KB | 
| 最終ジャッジ日時 | 2025-02-07 17:21:12 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 22 | 
ソースコード
#include<bits/stdc++.h>
using namespace std;
const int mod=998244353;
int main(){
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int N,K;
  cin>>N>>K;
  if(N==1||K==N-1)cout<<N<<'\n';
  else cout<<N-1<<'\n';
}