結果

問題 No.441 和か積
ユーザー posaune-0xa0
提出日時 2018-04-20 22:55:58
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 350 bytes
コンパイル時間 253 ms
コンパイル使用メモリ 27,648 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-27 05:18:21
合計ジャッジ時間 1,026 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 29 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <string.h>

int main(void)
{
    char A[202], B[202];
    scanf("%s %s", A, B);

    if(strcmp(A, "0")==0 || strcmp(A, "1")==0
      || strcmp(B, "0")==0 || strcmp(B, "1")==0)
        printf("S\n");
    else if(strcmp(A, "2")==0 && strcmp(B, "2")==0)
        printf("E\n");
    else
        printf("P\n");

    return 0;
}
0