結果
| 問題 | No.236 鴛鴦茶 |
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-03-20 20:30:40 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 66 ms / 2,000 ms |
| コード長 | 359 bytes |
| 記録 | |
| コンパイル時間 | 239 ms |
| コンパイル使用メモリ | 96,224 KB |
| 実行使用メモリ | 78,976 KB |
| 最終ジャッジ日時 | 2026-07-07 09:25:31 |
| 合計ジャッジ時間 | 3,480 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 |
ソースコード
A, B, X, Y = map(int, input().split())
if X * B <= Y * A:
max_volume = (X * (A + B)) / A
else:
max_volume = (Y * (A + B)) / B
# Format the output to handle decimal precision and trailing zeros
formatted = "{0:.12f}".format(max_volume).rstrip('0').rstrip('.') if '.' in "{0:.12f}".format(max_volume) else "{0:.0f}".format(max_volume)
print(formatted)
lam6er