結果

問題 No.441 和か積
ユーザー sggkshiosggkshio
提出日時 2018-03-08 08:04:46
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 12 ms / 1,000 ms
コード長 717 bytes
コンパイル時間 764 ms
コンパイル使用メモリ 83,924 KB
実行使用メモリ 27,232 KB
最終ジャッジ日時 2023-09-09 10:50:12
合計ジャッジ時間 2,390 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
26,920 KB
testcase_01 AC 11 ms
27,132 KB
testcase_02 AC 11 ms
27,016 KB
testcase_03 AC 12 ms
26,916 KB
testcase_04 AC 11 ms
26,976 KB
testcase_05 AC 11 ms
27,024 KB
testcase_06 AC 12 ms
27,108 KB
testcase_07 AC 11 ms
27,172 KB
testcase_08 AC 11 ms
26,972 KB
testcase_09 AC 11 ms
27,072 KB
testcase_10 AC 11 ms
26,912 KB
testcase_11 AC 11 ms
27,112 KB
testcase_12 AC 11 ms
27,044 KB
testcase_13 AC 12 ms
26,956 KB
testcase_14 AC 11 ms
26,964 KB
testcase_15 AC 12 ms
26,956 KB
testcase_16 AC 12 ms
27,032 KB
testcase_17 AC 11 ms
26,972 KB
testcase_18 AC 12 ms
27,228 KB
testcase_19 AC 11 ms
26,916 KB
testcase_20 AC 11 ms
27,232 KB
testcase_21 AC 11 ms
27,032 KB
testcase_22 AC 12 ms
26,980 KB
testcase_23 AC 11 ms
26,932 KB
testcase_24 AC 11 ms
27,092 KB
testcase_25 AC 11 ms
26,924 KB
testcase_26 AC 11 ms
26,920 KB
testcase_27 AC 11 ms
27,060 KB
testcase_28 AC 11 ms
27,048 KB
testcase_29 AC 11 ms
26,964 KB
testcase_30 AC 11 ms
27,176 KB
testcase_31 AC 11 ms
26,976 KB
testcase_32 AC 12 ms
26,960 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") {
		cout << "S";
	
	}
	else if (a == "2") {
		if (a == b)cout << "E";
		else cout << "P";
	}
	else cout << "P";
	
	cout << endl;

	return 0;
}
0