結果

問題 No.453 製薬会社
ユーザー qibqib
提出日時 2023-02-28 17:15:03
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 75 ms / 2,000 ms
コード長 320 bytes
コンパイル時間 346 ms
コンパイル使用メモリ 87,032 KB
実行使用メモリ 71,488 KB
最終ジャッジ日時 2023-10-14 00:08:31
合計ジャッジ時間 2,291 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,472 KB
testcase_01 AC 74 ms
71,312 KB
testcase_02 AC 72 ms
70,880 KB
testcase_03 AC 75 ms
71,488 KB
testcase_04 AC 73 ms
71,248 KB
testcase_05 AC 73 ms
71,212 KB
testcase_06 AC 73 ms
71,112 KB
testcase_07 AC 72 ms
71,296 KB
testcase_08 AC 73 ms
71,256 KB
testcase_09 AC 75 ms
71,348 KB
testcase_10 AC 74 ms
71,324 KB
testcase_11 AC 73 ms
71,200 KB
testcase_12 AC 74 ms
71,116 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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