結果

問題 No.236 鴛鴦茶
ユーザー yuppe19 😺
提出日時 2015-07-06 00:09:36
言語 Python2
(2.7.18)
結果
AC  
実行時間 12 ms / 2,000 ms
コード長 153 bytes
コンパイル時間 72 ms
コンパイル使用メモリ 6,656 KB
実行使用メモリ 6,144 KB
最終ジャッジ日時 2024-06-28 12:51:40
合計ジャッジ時間 1,275 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/python
a, b, x, y = map(int, raw_input().split())
if a*y >= b*x:
    res = float(x) * (a+b) / a
else:
    res = float(y) * (a+b) / b
print res
0