結果

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

ソースコード

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+c/b*a,(double)c+d/a*b) << endl;
}
0