結果

問題 No.453 製薬会社
ユーザー Konton7Konton7
提出日時 2020-04-03 13:14:31
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 16 ms / 2,000 ms
コード長 290 bytes
コンパイル時間 83 ms
コンパイル使用メモリ 10,564 KB
実行使用メモリ 7,968 KB
最終ジャッジ日時 2023-09-11 03:16:12
合計ジャッジ時間 1,035 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,824 KB
testcase_01 AC 16 ms
7,920 KB
testcase_02 AC 15 ms
7,944 KB
testcase_03 AC 15 ms
7,844 KB
testcase_04 AC 16 ms
7,844 KB
testcase_05 AC 16 ms
7,840 KB
testcase_06 AC 16 ms
7,816 KB
testcase_07 AC 16 ms
7,932 KB
testcase_08 AC 16 ms
7,968 KB
testcase_09 AC 16 ms
7,808 KB
testcase_10 AC 15 ms
7,872 KB
testcase_11 AC 16 ms
7,892 KB
testcase_12 AC 15 ms
7,936 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

c, d = [ int(v) for v in input().split() ]
a = (20 * c - 8 * d) / 13
b = (-7 * c + 21 * d) / 13
amax = min(4 / 3 * c, 4 * d)
bmax = min(7 / 2 * c, 7 / 5 * d)

if a >= 0 and b >= 0:
    print(max(1000 * a + 2000 * b, 1000 * amax, 2000 * bmax))
else:
    print(max(1000 * amax, 2000 * bmax))
0