結果

問題 No.453 製薬会社
ユーザー brthyyjpbrthyyjp
提出日時 2021-12-04 10:48:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 75 ms / 2,000 ms
コード長 194 bytes
コンパイル時間 284 ms
コンパイル使用メモリ 87,228 KB
実行使用メモリ 71,596 KB
最終ジャッジ日時 2023-09-20 20:58:16
合計ジャッジ時間 1,949 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,276 KB
testcase_01 AC 71 ms
71,184 KB
testcase_02 AC 71 ms
71,420 KB
testcase_03 AC 69 ms
71,468 KB
testcase_04 AC 75 ms
71,560 KB
testcase_05 AC 71 ms
71,360 KB
testcase_06 AC 72 ms
71,168 KB
testcase_07 AC 71 ms
71,452 KB
testcase_08 AC 72 ms
71,348 KB
testcase_09 AC 71 ms
71,492 KB
testcase_10 AC 72 ms
71,484 KB
testcase_11 AC 70 ms
71,532 KB
testcase_12 AC 72 ms
71,596 KB
権限があれば一括ダウンロードができます

ソースコード

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