結果
| 問題 |
No.441 和か積
|
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2025-02-05 20:07:36 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 642 bytes |
| コンパイル時間 | 4,184 ms |
| コンパイル使用メモリ | 277,000 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2025-02-05 20:07:45 |
| 合計ジャッジ時間 | 6,135 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 1 WA * 29 |
ソースコード
#include <bits/stdc++.h>
#define ll long long
#define pii pair<int, int>
#define pll pair<ll, ll>
#define tii tuple<int, int, int>
#define tll tuple<ll, ll, ll>
using namespace std;
constexpr int N = 2e5 + 5;
void solve()
{
string a, b;
cin >> a >> b;
if (a < b) swap(a, b);
if (a == b && (a == "0" || a == "2")) cout << "E";
else if (a > "1" && b > "1") cout << "S";
else if (a >= "1") cout << "P";
else cout << "S";
}
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int t = 1;
// cin >> t;
while (t--) {
solve();
cout << '\n';
}
return 0;
}
vjudge1