結果
問題 |
No.236 鴛鴦茶
|
ユーザー |
![]() |
提出日時 | 2015-12-14 04:46:10 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 695 bytes |
コンパイル時間 | 745 ms |
コンパイル使用メモリ | 87,520 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-15 12:11:22 |
合計ジャッジ時間 | 1,792 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 WA * 5 |
ソースコード
#include <map> #include <set> #include <list> #include <cmath> #include <ctime> #include <deque> #include <queue> #include <stack> #include <string> #include <bitset> #include <cstdio> #include <limits> #include <vector> #include <climits> #include <cstring> #include <cstdlib> #include <fstream> #include <numeric> #include <sstream> #include <iostream> #include <algorithm> #include <iomanip> #include <cctype> using namespace std; typedef long long ll; int main() { double a, b, x, y; cin >> a >> b >> x >> y; if (a >= b) { b /= a; cout << fixed << setprecision(10) << x*(1 + b) << endl; } else { a /= b; cout << fixed << setprecision(10) << y*(a + 1) << endl; } return 0; }