結果
問題 | No.441 和か積 |
ユーザー |
![]() |
提出日時 | 2016-11-11 22:27:07 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 625 bytes |
コンパイル時間 | 1,399 ms |
コンパイル使用メモリ | 158,060 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-27 03:17:28 |
合計ジャッジ時間 | 2,458 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 30 |
ソースコード
#include <bits/stdc++.h>using namespace std;#define FOR(i,l,r) for(int i = (l);i < (r);i++)#define ALL(x) (x).begin(),(x).end()template<typename T> bool chmax(T& a,const T& b){return a < b ? (a = b,true) : false;}template<typename T> bool chmin(T& a,const T& b){return b < a ? (a = b,true) : false;}typedef long long ll;string A,B;int main(){cin.tie(0);ios::sync_with_stdio(false);cin >> A >> B;if((A == "0" && B == "0") || (A == "2" && B == "2")){cout << "E" << endl;}else if(A == "0" || A == "1" || B == "0" || B == "1"){cout << "S" << endl;}else{cout << "P" << endl;}return 0;}