結果
| 問題 |
No.2525 Great Move
|
| コンテスト | |
| ユーザー |
planes
|
| 提出日時 | 2023-11-03 21:25:04 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 441 bytes |
| コンパイル時間 | 1,736 ms |
| コンパイル使用メモリ | 166,404 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-25 19:01:35 |
| 合計ジャッジ時間 | 2,629 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 WA * 8 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll =long long;
#define all(v) v.begin(),v.end()
#define rep(i,a,b) for(int i=a;i<b;i++)
#define rrep(i,a,b) for(int i=a;i>=b;i--)
ll INF=2e18;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
string H,S;cin>>H>>S;
ll a=H.back()-'0';
ll b=S.back()-'0';
if(H==S||(a%2!=0&&b%2!=0)) {
cout<<"Possible"<<endl;
}
else cout<<"Impossible"<<endl;
}
planes