結果
| 問題 | 
                            No.532 Possible or Impossible
                             | 
                    
| コンテスト | |
| ユーザー | 
                             hiyokko2
                         | 
                    
| 提出日時 | 2017-06-23 23:39:25 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 1,021 bytes | 
| コンパイル時間 | 1,309 ms | 
| コンパイル使用メモリ | 157,668 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-10-03 03:50:23 | 
| 合計ジャッジ時間 | 2,050 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 22 WA * 1 | 
ソースコード
#include <bits/stdc++.h>
#include <assert.h>
#define FOR(i,bg,ed) for(ll i=(bg);i<(ed);i++)
#define REP(i,n) FOR(i,0,n)
#define MOD 1000000007
//#define int long long
using namespace std;
typedef long long ll;
typedef vector<int> V;
typedef vector<V> VV;
const int INF = 1e9;
signed main()
{
    int N, M;
    
    cin >> N >> M;
    if (N > 3) {
        if (M > 3) {
            cout << "Possible" << endl;
        } else if (M == 0) {
            cout << "Possible" << endl;
        } else {
            cout << "Possible" << endl;
        }
    } else if (N == 3) {
        if (M == 2) {
            cout << "Impossible" << endl;
        } else {
            cout << "Possible" << endl;
        }
    } else if (N == 2) {
        if (M == 0) {
            cout << "Impossible" << endl;
        } else {
            cout << "Possible" << endl;
        }
    } else if (N == 1) {
        if (M == 0) {
            cout << "Impossible" << endl;
        } else {
            cout << "Possible" << endl;
        }
    }
}
            
            
            
        
            
hiyokko2