結果

問題 No.236 鴛鴦茶
ユーザー _KingdomOfMoray
提出日時 2019-12-23 10:26:29
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 30 ms / 2,000 ms
コード長 186 bytes
コンパイル時間 119 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-09-16 04:32:29
合計ジャッジ時間 1,737 ms
ジャッジサーバーID
(参考情報)
judge2 / judge6
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

input_list = list(map(int,input().split()))
a, b, x, y = input_list

res = 0

if (x / a) <= (y / b):
    res = x / a * a + x / a * b
else:
    res = y / b * b + y / b * a
    
print(res)
0