結果
問題 |
No.441 和か積
|
ユーザー |
![]() |
提出日時 | 2018-08-06 14:55:23 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 294 bytes |
コンパイル時間 | 546 ms |
コンパイル使用メモリ | 63,268 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-19 18:12:35 |
合計ジャッジ時間 | 1,440 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 WA * 14 |
ソースコード
#include <iostream> using namespace std; int main(void){ float 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; } }