結果
| 問題 |
No.453 製薬会社
|
| ユーザー |
|
| 提出日時 | 2023-02-28 17:15:03 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 41 ms / 2,000 ms |
| コード長 | 320 bytes |
| コンパイル時間 | 946 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 51,840 KB |
| 最終ジャッジ日時 | 2024-09-15 20:00:44 |
| 合計ジャッジ時間 | 1,736 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 9 |
ソースコード
c, d = map(float, input().split())
points = []
points.append((0, min(7 * c / 2, 7 * d / 5)))
points.append((min(4 * c / 3, 4 * d), 0))
points.append((20 * c / 13 - 8 * d / 13, - 7 * c / 13 + 21 * d / 13))
ans = 0.0
for x, y in points:
if x < 0 or y < 0:
continue
ans = max(ans, 1000 * x + 2000 * y)
print(ans)