結果
| 問題 |
No.2525 Great Move
|
| コンテスト | |
| ユーザー |
tnakao0123
|
| 提出日時 | 2023-11-08 19:10:30 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 488 bytes |
| コンパイル時間 | 481 ms |
| コンパイル使用メモリ | 41,728 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-25 23:51:37 |
| 合計ジャッジ時間 | 1,323 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 26 |
ソースコード
/* -*- coding: utf-8 -*-
*
* 2525.cc: No.2525 Great Move - yukicoder
*/
#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
/* constant */
const int MAX_N = 200000;
/* typedef */
/* global variables */
char h[MAX_N + 4], s[MAX_N + 4];
/* subroutines */
/* main */
int main() {
scanf("%s%s", h, s);
int hn = strlen(h), sn = strlen(s);
int f = (h[hn - 1] - s[sn - 1]) & 1;
if (! f) puts("Possible");
else puts("Impossible");
return 0;
}
tnakao0123