結果

問題 No.441 和か積
ユーザー wightou
提出日時 2025-08-01 03:37:11
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 685 bytes
コンパイル時間 2,493 ms
コンパイル使用メモリ 275,944 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2025-08-01 03:37:16
合計ジャッジ時間 4,026 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

/////////////////// メイン ///////////////////

int main () {
  
  //////////////////// 入力 ////////////////////

  string a, b;
  cin >> a >> b;

  //////////////// 出力変数定義 ////////////////

  char result = 'P';

  //////////////////// 処理 ////////////////////

  if (a=="0"&&b=="0") result = 'E';
  else if (a=="2"&&b=="2") result = 'E';
  else if (a=="0") result = 'S';
  else if (a=="1") result = 'S';
  else if (b=="0") result = 'S';
  else if (b=="1") result = 'S';

  //////////////////// 出力 ////////////////////

  cout << result << endl;

  //////////////////// 終了 ////////////////////

  return 0;

}
0