結果
問題 |
No.236 鴛鴦茶
|
ユーザー |
|
提出日時 | 2016-12-21 15:58:24 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 154 bytes |
コンパイル時間 | 1,616 ms |
コンパイル使用メモリ | 166,660 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-12-14 12:21:07 |
合計ジャッジ時間 | 2,398 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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.0<<endl;} | ^~~~
ソースコード
#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.0<<endl;}