結果

問題 No.532 Possible or Impossible
ユーザー kagasan
提出日時 2019-08-24 19:55:56
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 498 bytes
コンパイル時間 1,690 ms
コンパイル使用メモリ 166,820 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-14 13:13:46
合計ジャッジ時間 2,424 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 21 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#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 >= 3){
        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;
}
0