結果
| 問題 |
No.441 和か積
|
| コンテスト | |
| ユーザー |
f843nmfwisfeuw
|
| 提出日時 | 2020-09-11 20:29:45 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 646 bytes |
| コンパイル時間 | 942 ms |
| コンパイル使用メモリ | 92,884 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-26 16:56:59 |
| 合計ジャッジ時間 | 2,198 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 30 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <stack>
#include <algorithm>
#include <string>
#include <map>
#include <iterator>
#include <set>
#include <queue>
#include <bitset>
#include <cassert>
using namespace std;
int main() {
string A, B;
cin >> A >> B;
if (
(A == "1" or B == "1") or
(A == "0" and B != "0") or (A != "0" and B == "0")
) {
cout << "S" << endl;
} else if (
(A == "0" and B == "0") or (A == "2" and B == "2")) {
cout << "E" << endl;
} else {
cout << "P" << endl;
}
}
f843nmfwisfeuw