結果
| 問題 |
No.2525 Great Move
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-11 19:24:03 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 16 ms / 2,000 ms |
| コード長 | 287 bytes |
| コンパイル時間 | 484 ms |
| コンパイル使用メモリ | 66,608 KB |
| 最終ジャッジ日時 | 2025-02-23 22:29:30 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 26 |
ソースコード
#include <iostream>
using namespace std;
int main()
{
cin.tie(nullptr);
ios::sync_with_stdio(false);
string H, S;
H.reserve(200'002), S.reserve(200'002);
cin >> H >> S;
if (H[H.size() - 1] - S[S.size() - 1] & 1) cout << "Impossible\n";
else cout << "Possible\n";
return 0;
}