結果

問題 No.453 製薬会社
ユーザー kokoa1046kokoa1046
提出日時 2017-10-19 20:40:41
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 336 bytes
コンパイル時間 571 ms
コンパイル使用メモリ 10,656 KB
実行使用メモリ 54,136 KB
最終ジャッジ日時 2023-08-13 12:42:36
合計ジャッジ時間 6,919 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 -- -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3

import scipy.optimize


c = [-1000, -2000]
A = [[3 / 4, 2 / 7], [1 / 4, 5 / 7]]
xb = (0, None)
yb = (0, None)


def main():
    b = [int(x) for x in input().split()]
    res = scipy.optimize.linprog(c, A_ub=A, b_ub=b, bounds=(xb, yb))
    print("{:.12f}".format(-res.fun))


if __name__ == '__main__':
    main()
0