結果
| 問題 |
No.2525 Great Move
|
| コンテスト | |
| ユーザー |
遭難者
|
| 提出日時 | 2023-11-03 21:45:19 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 1,182 bytes |
| コンパイル時間 | 6,880 ms |
| コンパイル使用メモリ | 342,408 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-25 19:52:32 |
| 合計ジャッジ時間 | 7,785 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 26 |
ソースコード
#ifdef DEBUG
#define _GLIBCXX_DEBUG
#else
#pragma GCC target("avx2")
#pragma GCC optimize("Ofast,unroll-loops")
#endif
#include <bits/stdc++.h>
#include <atcoder/all>
#define rep(i, n) for (int i = 0; i < n; i++)
#define per(i, n) for (int i = n - 1; i >= 0; i--)
#define ALL(a) a.begin(), a.end()
#undef long
#define long long long
using namespace std;
using mint = atcoder::modint998244353;
ostream& operator<<(ostream& os, const mint& a) {
return os << a.val();
}
template<typename T>
ostream& operator<<(ostream& os, const vector<T>& a) {
const int n = a.size();
rep(i, n) os << a[i] << " \n"[i + 1 == n];
return os;
}
template<typename T>
istream& operator>>(istream& os, const vector<T>& a) {
for (T& i : a) os >> i;
return os;
}
void chmin(int& x, int y) {
if (x > y) x = y;
}
void chmax(int& x, int y) {
if (x < y) x = y;
}
void solve() {
string s, t;
cin >> s >> t;
bool ans = true;
ans ^= s[s.length() - 1] % 2 == 0;
ans ^= t[t.length() - 1] % 2 == 0;
cout << (ans ? "Possible" : "Impossible") << '\n';
}
int main() {
// srand((unsigned)time(NULL));
cin.tie(nullptr);
ios::sync_with_stdio(false);
cout << fixed << setprecision(40);
solve();
return 0;
}
遭難者