結果
| 問題 |
No.441 和か積
|
| コンテスト | |
| ユーザー |
knk
|
| 提出日時 | 2017-09-24 19:43:01 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 473 bytes |
| コンパイル時間 | 737 ms |
| コンパイル使用メモリ | 74,296 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-27 03:55:06 |
| 合計ジャッジ時間 | 1,567 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 30 |
ソースコード
#include <iostream>
#include <iomanip>
#include <cmath>
typedef long long ll;
int main(void)
{
std::cin.tie(0);
std::ios::sync_with_stdio(false);
std::cout << std::fixed << std::setprecision(13);
std::string a, b;
std::cin >> a >> b;
int ai = 10, bi = 10;
if (a.size()==1) ai = std::stoi(a);
if (b.size()==1) bi = std::stoi(b);
if (ai+bi==ai*bi) std::cout << "E" << std::endl;
else std::cout << (ai+bi > ai*bi ? "S" : "P") << std::endl;
return 0;
}
knk