結果

問題 No.236 鴛鴦茶
ユーザー 👑 CleyL
提出日時 2020-01-28 00:25:09
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 193 bytes
コンパイル時間 877 ms
コンパイル使用メモリ 68,560 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-14 16:37:11
合計ジャッジ時間 1,662 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 7 WA * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <iomanip>
using namespace std;
int main(){
    int a,b,c,d;cin>>a>>b>>c>>d;
    cout << fixed << setprecision(10) << min((double)d+d/b*a,(double)c+c/a*b) << endl;
}
0