結果
問題 | No.441 和か積 |
ユーザー |
![]() |
提出日時 | 2016-11-16 10:55:56 |
言語 | C90 (gcc 12.3.0) |
結果 |
CE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 489 bytes |
コンパイル時間 | 406 ms |
コンパイル使用メモリ | 25,216 KB |
最終ジャッジ日時 | 2025-01-28 05:49:48 |
合計ジャッジ時間 | 1,147 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
main.c: In function 'main': main.c:7:9: error: C++ style comments are not allowed in ISO C90 7 | //printf("%s\n", a); | ^ main.c:7:9: note: (this will be reported only once per input file)
ソースコード
#include <stdio.h>#include <string.h>int main(void) {char a[201], b[201];scanf("%s", a);//printf("%s\n", a);scanf("%s", b);//printf("%s\n",b);if(strcmp(a, "0") == 0 && strcmp(b, "0") == 0){printf("E\n");}else if(strcmp(a, "0") == 0 || strcmp(b, "0") == 0){printf("S\n");}else if(strcmp(a, "1") == 0 || strcmp(b, "1") == 0){printf("S\n");}else if(strcmp(a, "2") == 0 && strcmp(b, "2") == 0){printf("E");}else{printf("P\n");}return 0;}