結果
| 問題 |
No.441 和か積
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-08-31 02:25:53 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 936 bytes |
| コンパイル時間 | 711 ms |
| コンパイル使用メモリ | 91,724 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-27 03:55:04 |
| 合計ジャッジ時間 | 1,646 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 30 |
ソースコード
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <functional>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#include <valarray>
#include <vector>
#define N 1000
#define M 1000000007
#define pen(str) return cout<<str<<endl,0
#define re(i,n) for(int i=0;i<(n);i++)
#define rep(i,a,b) for(int i=(a);i<(b);i++)
#define fe(i,n,f) for_each(i,n,f)
#define bw(a,b,c) (((a)<=(b))&&((b)<=(c)))
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
string a="iaaeuu";
string b="nbmgr";
bool fa[6]={0};
bool fb[5]={0};
int n;
set<string> l;
int main(void){
string a,b;
cin>>a>>b;
if(a=="0"&&b=="0") pen("E");
else if(a=="0"||b=="0")pen("S");
if(a=="1"&&b=="1")pen("S");
if(a=="1"||b=="1")pen("S");
if(a=="2"&&b=="2")pen("E");
pen("P");
return 0;
}