結果
| 問題 | No.453 製薬会社 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-02-28 17:15:03 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 34 ms / 2,000 ms |
| + 6µs | |
| コード長 | 320 bytes |
| 記録 | |
| コンパイル時間 | 84 ms |
| コンパイル使用メモリ | 64,508 KB |
| 実行使用メモリ | 53,592 KB |
| 最終ジャッジ日時 | 2026-10-20 08:39:04 |
| 合計ジャッジ時間 | 2,149 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge6_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 10 |
ソースコード
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)