結果
| 問題 | 
                            No.532 Possible or Impossible
                             | 
                    
| コンテスト | |
| ユーザー | 
                             hiyokko2
                         | 
                    
| 提出日時 | 2017-06-23 23:42:28 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                RE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 1,050 bytes | 
| コンパイル時間 | 3,292 ms | 
| コンパイル使用メモリ | 158,848 KB | 
| 実行使用メモリ | 6,824 KB | 
| 最終ジャッジ日時 | 2024-10-03 03:50:49 | 
| 合計ジャッジ時間 | 2,872 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 16 WA * 1 RE * 6 | 
ソースコード
#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;
            assert(false);
        }
    } 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