結果
| 問題 |
No.236 鴛鴦茶
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-05-30 20:52:29 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 205 bytes |
| コンパイル時間 | 1,342 ms |
| コンパイル使用メモリ | 157,152 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-21 19:24:29 |
| 合計ジャッジ時間 | 2,088 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | AC * 3 WA * 20 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
double x, y, a, b;
cin >> x >> y >> a >> b;
if(x/a*b <= y){
printf("%f", x+x/a*b);
return 0;
} else {
printf("%f", y+y/b*a);
return 0;
}
return 1;
}