結果
| 問題 | No.532 Possible or Impossible |
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2026-04-22 14:57:46 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 667 bytes |
| 記録 | |
| コンパイル時間 | 1,440 ms |
| コンパイル使用メモリ | 177,492 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-22 14:57:53 |
| 合計ジャッジ時間 | 2,423 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
#define sc cerr
#define qlog(x) {sc<<#x<<" = "<<(x)<<"\n";}
#define rep(i,l,r) for(ll i=(l);i<=(r);i++)
#define irep(i,l,r) for(ll i=(l);i>=(r);i--)
#define qloga(a,l,r) {sc<<#a<<" : "; rep(I,l,r){sc<<(a)[I]<<" ";}sc<<"\n";}
#define qlogSTL(a) {sc<<#a<<" : "; for(const auto &I:(a)){sc<<(I)<<" ";}sc<<"\n";}
typedef long long ll;
typedef unsigned long long ull;
signed main(){
ios::sync_with_stdio(0); cin.tie(0);
int T; T=1;
while(T--)puts([&](){
int n,m;
cin>>n>>m;
if(n==1 && m==0)return 0;
if(n==2 && m==0)return 0;
return 1;
}()?"Possible":"Impossible");
}
vjudge1