結果

問題 No.2525 Great Move
ユーザー GOTKAKO
提出日時 2023-11-03 21:23:16
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 299 bytes
コンパイル時間 1,882 ms
コンパイル使用メモリ 191,868 KB
最終ジャッジ日時 2025-02-17 17:30:03
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);

    string H,S; cin >> H >> S;
    int h = H.at(H.size()-1)-'0',s = S.at(S.size()-1)-'0';
    if((h+s)%2 == 0) cout << "Possible" << endl;
    else cout << "Impossible" << endl;
}
0