結果
問題 |
No.1748 Parking Lot
|
ユーザー |
|
提出日時 | 2022-01-20 22:16:58 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 262 bytes |
コンパイル時間 | 1,529 ms |
コンパイル使用メモリ | 164,480 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-24 07:36:52 |
合計ジャッジ時間 | 2,390 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 15 WA * 7 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int n, k; cin >> n >> k; int out = 0; if(n == 1) out = n; else if(n == 2) { if(k == 1) out = 2; else out = 1; } else out = n - 1; cout << out << '\n'; }