結果

問題 No.453 製薬会社
ユーザー brthyyjp
提出日時 2021-12-04 10:48:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 33 ms / 2,000 ms
コード長 194 bytes
コンパイル時間 124 ms
コンパイル使用メモリ 82,376 KB
実行使用メモリ 52,224 KB
最終ジャッジ日時 2024-07-06 15:46:04
合計ジャッジ時間 1,047 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

c, d  =map(int, input().split())

if 3*d <= c:
    x = 4*d
    y = 0
elif c < 3*d and 2*d <= 5*c:
    x = (20*c-8*d)/13
    y = (-7*c+21*d)/13
else:
    x = 0
    y = 7*c/2
print(1000*x+2000*y)
0