結果

問題 No.453 製薬会社
ユーザー ebicochinealebicochineal
提出日時 2016-12-04 20:43:59
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 608 bytes
コンパイル時間 343 ms
コンパイル使用メモリ 10,872 KB
実行使用メモリ 12,396 KB
最終ジャッジ日時 2023-08-18 14:10:40
合計ジャッジ時間 4,034 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#! /usr/bin/env python3

def main():
    C, D = map(int, input().split())
    A = min(C/(3/4), D/(1/4))
    max = A
    b = 0
    ab = A+b*2
    x = A
    for i in range(16):
        x /= 10
        c = 0
        while ab >= max:
            c += 1
            max = ab
            A -= x
            c, d = C-A*(3/4), D-A*(1/4)
            b = min(c/(2/7), d/(5/7))
            ab = A+b*2
        if c > 1:
            A += x*2
            c, d = C-A*(3/4), D-A*(1/4)
            b = min(c/(2/7), d/(5/7))
            ab = A+b*2
            max = ab
    print(max*1000)
if __name__ == '__main__':
    main()
0