結果
| 問題 | No.441 和か積 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2020-11-14 15:28:45 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 3 ms / 1,000 ms | 
| コード長 | 580 bytes | 
| コンパイル時間 | 1,725 ms | 
| コンパイル使用メモリ | 168,280 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-07-22 23:06:50 | 
| 合計ジャッジ時間 | 2,677 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 30 | 
ソースコード
#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0; i < (n); i++)
using namespace std;
typedef long long ll;
int toNum(string s){
    for(auto c : s) if(isdigit(c) == 0) return -1;
    return stoi(s);
}
int main(){
    cin.tie(0);
    ios::sync_with_stdio(0);
    string A,B; cin >> A >> B;
    if(A == "0" || B == "0"){
        if(A == B) cout << "E" << endl;
        else cout << "S" << endl;
    }else if(A == "1" || B == "1"){
        cout << "S" << endl;
    }else if(A == "2" && B == "2"){
        cout << "E" << endl;
    }else{
        cout << "P" << endl;
    }
}
            
            
            
        