結果
| 問題 | No.441 和か積 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2018-05-29 15:55:43 | 
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 1,000 ms | 
| コード長 | 505 bytes | 
| コンパイル時間 | 488 ms | 
| コンパイル使用メモリ | 63,780 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-06-30 08:01:26 | 
| 合計ジャッジ時間 | 1,503 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 30 | 
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main(int argc, char* argv[])
{
	string A,B;
	cin>>A>>B;
	if (A[0]=='0' && B[0]=='0'){
		cout<<"E"<<endl;
		return 0;
	}
	if (A[0]=='0' || B[0]=='0'){
		cout<<"S"<<endl;
		return 0;
	}
	if (!A.compare("1") && !B.compare("1")){
		cout<<"S"<<endl;
		return 0;
	}
	if (!A.compare("1") || !B.compare("1")){
		cout<<"S"<<endl;
		return 0;
	}
	if (!A.compare("2") && !B.compare("2")){
		cout<<"E"<<endl;
		return 0;
	}
	cout<<"P"<<endl;
	return 0;
}
            
            
            
        