結果
| 問題 | No.2525 Great Move |
| コンテスト | |
| ユーザー |
chro_96
|
| 提出日時 | 2023-11-03 23:23:09 |
| 言語 | C(gnu17) (gcc 15.2.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 884µs | |
| コード長 | 418 bytes |
| 記録 | |
| コンパイル時間 | 54 ms |
| コンパイル使用メモリ | 36,224 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-23 11:07:44 |
| 合計ジャッジ時間 | 2,049 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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