結果
問題 |
No.441 和か積
|
ユーザー |
![]() |
提出日時 | 2018-03-03 18:21:05 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 616 bytes |
コンパイル時間 | 515 ms |
コンパイル使用メモリ | 64,352 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-30 04:44:40 |
合計ジャッジ時間 | 1,747 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 WA * 7 |
ソースコード
// No.441 和か積 // https://yukicoder.me/problems/no/441 // #include <iostream> using namespace std; char solve(double A, double B); int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); double A, B; cin >> A >> B; char ans = solve(A, B); cout << ans << endl; } char solve(double A, double B) { if (A == 0.0) { if (B == 0.0) return 'E'; else return 'S'; } else { if (B == 0.0) return 'S'; else if (A == 2.0 && B == 2.0) return 'E'; return 'P'; } }