結果

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

ソースコード

diff #

A, B, X, Y = map(int, raw_input().split())

if A * Y > B * X:
    ans = X + X / float(A) * B
else:
    ans = Y + Y / float(B) * A

print ans
0