結果

問題 No.441 和か積
ユーザー miku39kk
提出日時 2017-07-26 09:40:08
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 355 bytes
コンパイル時間 699 ms
コンパイル使用メモリ 55,304 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-27 03:54:25
合計ジャッジ時間 1,658 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
using namespace std;

int main() {
    string a,b;
    cin >> a >> b;
    string ans;
    if(a == "0" && b == "0")ans = "E\n";
    else if(a == "0" || b == "0")ans = "S\n";
    else if(a == "1" || b == "1")ans = "S\n";
    else if(a == "2" && b == "2")ans = "E\n";
    else ans = "P\n";
    cout << ans;
return 0;
}
0