結果

問題 No.453 製薬会社
ユーザー LyricalMaestro
提出日時 2025-05-04 04:25:19
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 48 ms / 2,000 ms
コード長 505 bytes
コンパイル時間 415 ms
コンパイル使用メモリ 12,160 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2025-05-04 04:25:22
合計ジャッジ時間 2,005 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

## https://yukicoder.me/problems/no/2329


def main():
    C,D = map(int, input().split())

    x = (- (40 / 91)) * ((7 * D / 5) - (7 * C / 2))
    y = - ((21 * x) / 8) + 7 * C / 2

    if x >= 0.0 and y >= 0.0:
        k = x + 2 * y
        print(k * 1000)
    elif y < 0.0:
        x = 4 * D
        y = 0
        k = x + 2 * y
        print(1000 * k)
    else:
        # x < 0.0
        x = 0
        y = 7 * C / 2
        k = x + 2 * y
        print(1000 * k)




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