結果

問題 No.441 和か積
ユーザー sggkshiosggkshio
提出日時 2018-03-08 08:03:01
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 746 bytes
コンパイル時間 681 ms
コンパイル使用メモリ 84,580 KB
実行使用メモリ 27,200 KB
最終ジャッジ日時 2024-04-15 12:01:35
合計ジャッジ時間 2,065 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 11 ms
27,012 KB
testcase_02 AC 11 ms
27,096 KB
testcase_03 AC 15 ms
27,052 KB
testcase_04 AC 11 ms
26,916 KB
testcase_05 AC 12 ms
27,148 KB
testcase_06 AC 12 ms
27,004 KB
testcase_07 AC 12 ms
27,152 KB
testcase_08 AC 12 ms
26,952 KB
testcase_09 AC 11 ms
27,052 KB
testcase_10 AC 11 ms
27,076 KB
testcase_11 AC 11 ms
27,008 KB
testcase_12 WA -
testcase_13 AC 11 ms
27,068 KB
testcase_14 AC 11 ms
26,952 KB
testcase_15 WA -
testcase_16 AC 11 ms
27,020 KB
testcase_17 AC 12 ms
27,012 KB
testcase_18 AC 11 ms
26,992 KB
testcase_19 AC 11 ms
27,132 KB
testcase_20 AC 11 ms
26,972 KB
testcase_21 AC 11 ms
27,048 KB
testcase_22 AC 12 ms
26,964 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 11 ms
27,092 KB
testcase_26 WA -
testcase_27 AC 11 ms
27,012 KB
testcase_28 AC 11 ms
27,116 KB
testcase_29 AC 11 ms
27,180 KB
testcase_30 AC 12 ms
27,080 KB
testcase_31 AC 11 ms
27,124 KB
testcase_32 AC 11 ms
27,128 KB
権限があれば一括ダウンロードができます

ソースコード

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 << "S";
		else cout << "P";
	}
	else if (a == "2") {
		if (a == b)cout << "E";
		else cout << "P";
	}
	else cout << "P";
	
	cout << endl;

	return 0;
}
0