結果

問題 No.236 鴛鴦茶
ユーザー kotatsugame
提出日時 2016-12-21 16:03:08
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 145 bytes
コンパイル時間 1,546 ms
コンパイル使用メモリ 165,900 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-28 13:09:44
合計ジャッジ時間 2,242 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 23
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:2:21: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | using namespace std;main(){double a,b,c,d;cin>>a>>b>>c>>d;cout<<fixed<<setprecision(6)<<min(c/a*b,d)+min(d/b*a,c)<<endl;}
      |                     ^~~~

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;main(){double a,b,c,d;cin>>a>>b>>c>>d;cout<<fixed<<setprecision(6)<<min(c/a*b,d)+min(d/b*a,c)<<endl;}
0