結果
| 問題 | No.2525 Great Move |
| コンテスト | |
| ユーザー |
てんぷら
|
| 提出日時 | 2024-08-11 16:48:40 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| + 421µs | |
| コード長 | 576 bytes |
| 記録 | |
| コンパイル時間 | 3,907 ms |
| コンパイル使用メモリ | 374,752 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-08-25 00:10:27 |
| 合計ジャッジ時間 | 6,672 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 26 |
ソースコード
#include <atcoder/all>
#include <bits/stdc++.h>
using ll = long long;
using ull = unsigned long long;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define REP(i, m, n) for(int i = (int)(m); i < (int)(n); i++)
using namespace std;
using namespace atcoder;
using mint = modint998244353;
const int inf = 1000000007;
const ll longinf = 1ll << 60;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
string s, h;
cin >> s >> h;
int v = s.back() - h.back();
cout << (v % 2 == 0 ? "Possible" : "Impossible") << endl;
return 0;
}
てんぷら