結果
| 問題 | No.2525 Great Move |
| コンテスト | |
| ユーザー |
nekoti
|
| 提出日時 | 2023-11-03 21:31:29 |
| 言語 | C(gnu17) (gcc 15.2.0) |
| 結果 |
CE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 288 bytes |
| 記録 | |
| コンパイル時間 | 105 ms |
| コンパイル使用メモリ | 27,588 KB |
| 最終ジャッジ日時 | 2026-02-22 11:20:19 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
main.c: In function 'main':
main.c:7:12: error: 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'
ソースコード
#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;
}
nekoti