結果
問題 |
No.532 Possible or Impossible
|
ユーザー |
![]() |
提出日時 | 2019-08-24 19:49:31 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 609 bytes |
コンパイル時間 | 1,563 ms |
コンパイル使用メモリ | 165,516 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-14 13:13:04 |
合計ジャッジ時間 | 2,219 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 WA * 3 |
ソースコード
#include "bits/stdc++.h" using namespace std; typedef long long ll; void Say(bool say, string a = "Yes", string b = "No"){cout << (say ? a : b) << endl;}; int main(){ ll N, M; cin >> N >> M; if(N >= 4){ cout << "Possible" << endl; } if(N == 3){ if(M == 2)cout << "Impossible" << endl; else cout << "Possible" << endl; } if(N == 2){ if(M == 1)cout << "Impossible" << endl; else cout << "Possible" << endl; } if(N == 1){ if(M == 0)cout << "Impossible" << endl; else cout << "Possible" << endl; } return 0; }