結果

問題 No.453 製薬会社
コンテスト
ユーザー qib
提出日時 2023-02-28 17:15:03
言語 PyPy3
(8.0.0 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 34 ms / 2,000 ms
+ 6µs
コード長 320 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 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
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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)
0