結果

問題 No.441 和か積
ユーザー oooooba
提出日時 2021-02-22 21:45:25
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 648 bytes
コンパイル時間 1,159 ms
コンパイル使用メモリ 111,560 KB
最終ジャッジ日時 2025-01-19 03:37:38
ジャッジサーバーID
(参考情報)
judge1 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <algorithm>
#include <array>
#include <cmath>
#include <cstdio>
#include <deque>
#include <iomanip>
#include <iostream>
#include <numeric>
#include <optional>
#include <queue>
#include <sstream>
#include <unordered_map>
#include <unordered_set>
#include <vector>

using namespace std;

int main() {
    string a, b;
    cin >> a >> b;
    char ans;
    if (a == "0" || b == "0") {
        if (a == b)
            ans = 'E';
        else
            ans = 'S';
    } else if (a == "1" || b == "1")
        ans = 'S';
    else if (a == "2" && b == "2")
        ans = 'E';
    else
        ans = 'P';
    cout << ans << endl;
    return 0;
}
0