結果
問題 |
No.441 和か積
|
ユーザー |
![]() |
提出日時 | 2018-08-06 14:57:33 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 300 bytes |
コンパイル時間 | 482 ms |
コンパイル使用メモリ | 64,332 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-19 18:12:36 |
合計ジャッジ時間 | 1,276 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 26 WA * 4 |
ソースコード
#include <iostream> using namespace std; int main(void){ long double a,b,sum_ab,pro_ab; cin>>a>>b; sum_ab = a+b; pro_ab = a*b; if(sum_ab==pro_ab){ cout<<"E"<<endl; }else if(pro_ab>sum_ab){ cout<<"P"<<endl; }else{ cout<<"S"<<endl; } }