結果

問題 No.441 和か積
ユーザー sggkshio
提出日時 2018-03-08 08:04:11
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 749 bytes
コンパイル時間 551 ms
コンパイル使用メモリ 85,356 KB
実行使用メモリ 27,128 KB
最終ジャッジ日時 2024-10-05 07:38:53
合計ジャッジ時間 1,926 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 29 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#define _USE_MATH_DEFINES
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string>
#include<iostream>
#include<iostream>
#include<cctype>
#include<cstdio>
#include<vector>
#include<stack>
#include<queue>
#include <algorithm>
#include<math.h>
#include<set>
#include<map>
#include <sstream>
#include<iomanip>
#include <ctype.h>
using namespace std;

//#include<bits/stdc++.h>

vector<long long int> f[1005][1005];

int main() {
	string a, b;
	cin >> a >> b;
	if (a > b)swap(a, b);
	if (a == "0") {
		if (a == b)cout << "E";
		else cout << "S";
	}
	else if (a == "1") {
		if (a == b)cout << "E";
		else cout << "S";
	
	}
	else if (a == "2") {
		if (a == b)cout << "E";
		else cout << "P";
	}
	else cout << "P";
	
	cout << endl;

	return 0;
} 
0