結果

問題 No.441 和か積
ユーザー Mcpu3
提出日時 2018-06-25 17:38:43
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 1,000 ms
コード長 310 bytes
コンパイル時間 109 ms
コンパイル使用メモリ 28,288 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-30 22:39:30
合計ジャッジ時間 1,048 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main(void)
{
	char a[202],b[202];
	scanf("%s%s",a,b);
	if(a[0]=='2'&&a[1]=='\0'&&b[0]=='2'&&b[1]=='\0'||a[0]=='0'&&a[1]=='\0'&&b[0]=='0'&&b[1]=='\0')puts("E");
	else if(a[0]=='0'||b[0]=='0'||a[0]=='1'&&a[1]=='\0'||b[0]=='1'&&b[1]=='\0')puts("S");
	else puts("P");
	return 0;
}
0