結果

問題 No.441 和か積
ユーザー Yut176
提出日時 2016-11-11 22:24:27
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 404 bytes
コンパイル時間 568 ms
コンパイル使用メモリ 72,864 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-25 08:25:43
合計ジャッジ時間 1,514 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<algorithm>
#include<cstdio>
#include<cstdlib>
#include<vector>
#include<map>
#include<queue>
#include<string>
#include<sstream>
#include<cmath>
#include<numeric>
using namespace std;

int main(){

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

  if( a[0] == b[0] ) cout << "E" << endl;
  else if( a[0] == '0' || b[0] == '0' ) cout << "S" << endl;
  else cout << "P" << endl;

  return 0;
}
0