結果

問題 No.236 鴛鴦茶
ユーザー kotatsugame
提出日時 2016-12-21 15:58:05
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 152 bytes
コンパイル時間 1,887 ms
コンパイル使用メモリ 167,560 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-14 12:21:01
合計ジャッジ時間 2,489 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 7 WA * 16
権限があれば一括ダウンロードができます
コンパイルメッセージ
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)<<max(min(c/a*b,d),min(d/b*a,c))*2<<endl;}
      |                     ^~~~

ソースコード

diff #

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