結果

問題 No.441 和か積
ユーザー yansi819
提出日時 2024-03-31 14:10:46
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 19 ms / 1,000 ms
コード長 400 bytes
コンパイル時間 4,440 ms
コンパイル使用メモリ 250,564 KB
最終ジャッジ日時 2025-02-20 17:01:09
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
using ll = long long;
using ld = long double;

string s1, s2;
int a, b;

int main() {
  cin >> s1 >> s2;
  a = s1.size() > 1 ? 9: stoi(s1);
  b = s2.size() > 1 ? 9: stoi(s2);
  if (a * b == a + b) cout << 'E' << endl;
  else if (a * b > a + b) cout << 'P' << endl;
  else cout << 'S' << endl;
  return 0;
}
0