結果
| 問題 | No.532 Possible or Impossible |
| コンテスト | |
| ユーザー |
kagasan
|
| 提出日時 | 2019-08-24 19:55:56 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 498 bytes |
| 記録 | |
| コンパイル時間 | 1,540 ms |
| コンパイル使用メモリ | 179,020 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-01 23:26:53 |
| 合計ジャッジ時間 | 2,901 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 21 WA * 2 |
ソースコード
#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;
}
kagasan