結果
| 問題 |
No.441 和か積
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-11-19 16:00:13 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 721 bytes |
| コンパイル時間 | 1,378 ms |
| コンパイル使用メモリ | 159,968 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-26 21:52:59 |
| 合計ジャッジ時間 | 2,267 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 29 WA * 1 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
signed main(){
string a, b; cin >> a >> b;
if( not ( a.size() <= b.size() ) )
swap( a, b );
if( a.size() > 8 )
cout << "P" << endl,
exit( 0 );
int x; stringstream ss( a ); ss >> x;
if( x == 2 ){
int y = 1e9;
if( b.size() <= 8 ){
stringstream sss( b ); sss >> y;
}
if( y == 2 )
cout << "E" << endl;
else
cout << "P" << endl;
} else if( x == 1 ){
cout << "S" << endl;
} else if( x == 0 ){
int y = 1e9;
if( b.size() <= 8 ){
stringstream sss( b ); sss >> y;
}
if( y == 0 )
cout << "E" << endl;
else
cout << "S" << endl;
} else{
cout << "P" << endl;
}
return 0;
}