結果
問題 | No.441 和か積 |
ユーザー |
|
提出日時 | 2017-02-15 10:45:52 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 304 bytes |
コンパイル時間 | 598 ms |
コンパイル使用メモリ | 64,984 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-27 03:45:31 |
合計ジャッジ時間 | 1,633 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 30 |
ソースコード
#include <iostream>#include <string>using namespace std;int main() {string a, b;cin >> a >> b;char c = 'P';if (a == "0" || b == "0") {c = a == b ? 'E' : 'S';} else if (a == "1" || b == "1") {c = 'S';} else if (a == "2" && a == b) {c = 'E';}cout << c << endl;return 0;}