結果

問題 No.2525 Great Move
ユーザー nekotinekoti
提出日時 2023-11-03 21:31:29
言語 C
(gcc 12.3.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 288 bytes
コンパイル時間 571 ms
コンパイル使用メモリ 28,300 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-11-03 21:31:34
合計ジャッジ時間 1,469 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,348 KB
testcase_01 AC 2 ms
4,348 KB
testcase_02 AC 2 ms
4,348 KB
testcase_03 AC 2 ms
4,348 KB
testcase_04 AC 3 ms
4,348 KB
testcase_05 AC 1 ms
4,348 KB
testcase_06 AC 1 ms
4,348 KB
testcase_07 AC 1 ms
4,348 KB
testcase_08 AC 1 ms
4,348 KB
testcase_09 AC 1 ms
4,348 KB
testcase_10 AC 2 ms
4,348 KB
testcase_11 AC 1 ms
4,348 KB
testcase_12 AC 1 ms
4,348 KB
testcase_13 AC 2 ms
4,348 KB
testcase_14 AC 2 ms
4,348 KB
testcase_15 AC 2 ms
4,348 KB
testcase_16 AC 2 ms
4,348 KB
testcase_17 AC 1 ms
4,348 KB
testcase_18 AC 1 ms
4,348 KB
testcase_19 AC 1 ms
4,348 KB
testcase_20 AC 1 ms
4,348 KB
testcase_21 AC 1 ms
4,348 KB
testcase_22 AC 1 ms
4,348 KB
testcase_23 AC 1 ms
4,348 KB
testcase_24 AC 1 ms
4,348 KB
testcase_25 AC 1 ms
4,348 KB
testcase_26 AC 1 ms
4,348 KB
testcase_27 AC 1 ms
4,348 KB
testcase_28 AC 1 ms
4,348 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function 'main':
main.c:7:12: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
    7 |   int hlen=strlen(h);
      |            ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strlen'
    1 | #include<stdio.h>
  +++ |+#include <string.h>
    2 | int main(void)
main.c:7:12: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
    7 |   int hlen=strlen(h);
      |            ^~~~~~
main.c:7:12: note: include '<string.h>' or provide a declaration of 'strlen'

ソースコード

diff #

#include<stdio.h>
int main(void)
{
  int scan;//scanf警告用
  char h[200010],s[200010];
  scan=scanf("%s %s",h,s);
  int hlen=strlen(h);
  int slen=strlen(s);
  int hh=h[hlen-1]-'0';
  int ss=s[slen-1]-'0';
  if(hh%2==ss%2)printf("Possible");
  else printf("Impossible");
  return 0;
}
0