結果

問題 No.441 和か積
ユーザー k
提出日時 2020-06-16 02:17:40
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 4 ms / 1,000 ms
コード長 462 bytes
コンパイル時間 2,293 ms
コンパイル使用メモリ 192,364 KB
最終ジャッジ日時 2025-01-11 04:36:04
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

#define REP(i,n) for(int i=0; i<(int)(n); i++)

int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  string a, b;
  cin >> a >> b;

  if (a == "0" && b == "0")
    cout << "E" << endl;
  else if (a == "0" || b == "0")
    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;

  return 0;
}
0