結果
| 問題 |
No.2525 Great Move
|
| コンテスト | |
| ユーザー |
chro_96
|
| 提出日時 | 2023-11-03 23:23:09 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 418 bytes |
| コンパイル時間 | 238 ms |
| コンパイル使用メモリ | 28,544 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-25 21:28:52 |
| 合計ジャッジ時間 | 986 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 26 |
ソースコード
#include <stdio.h>
int main () {
char h[200003] = "";
char s[200003] = "";
int res = 0;
int idx1 = 0;
int idx2 = 0;
res = scanf("%s", h);
res = scanf("%s", s);
while (h[idx1] != '\0') {
idx1++;
}
while (s[idx2] != '\0') {
idx2++;
}
if (((int)(h[idx1-1]))%2 == ((int)(s[idx2-1]))%2) {
printf("Possible\n");
} else {
printf("Impossible\n");
}
return 0;
}
chro_96