結果
問題 |
No.441 和か積
|
ユーザー |
|
提出日時 | 2018-03-08 08:04:46 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 20 ms / 1,000 ms |
コード長 | 717 bytes |
コンパイル時間 | 816 ms |
コンパイル使用メモリ | 84,352 KB |
実行使用メモリ | 27,140 KB |
最終ジャッジ日時 | 2024-06-27 03:58:16 |
合計ジャッジ時間 | 2,363 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 30 |
ソースコード
#define _USE_MATH_DEFINES #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<string> #include<iostream> #include<iostream> #include<cctype> #include<cstdio> #include<vector> #include<stack> #include<queue> #include <algorithm> #include<math.h> #include<set> #include<map> #include <sstream> #include<iomanip> #include <ctype.h> using namespace std; //#include<bits/stdc++.h> vector<long long int> f[1005][1005]; int main() { string a, b; cin >> a >> b; if (a > b)swap(a, b); if (a == "0") { if (a == b)cout << "E"; else cout << "S"; } else if (a == "1") { cout << "S"; } else if (a == "2") { if (a == b)cout << "E"; else cout << "P"; } else cout << "P"; cout << endl; return 0; }