結果

問題 No.453 製薬会社
ユーザー rlangevinrlangevin
提出日時 2023-11-08 01:09:40
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 38 ms / 2,000 ms
コード長 284 bytes
コンパイル時間 345 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 53,460 KB
最終ジャッジ日時 2023-11-08 01:09:42
合計ジャッジ時間 1,801 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

C, D = map(int, input().split())
ans1 = 1000 * min(C / (3/4), D / (1/4))
ans2 = 2000 * min(C / (2/7), D / (5/7))
delta = 364
x = (20 * C - 8 * D) / delta * 28
y = (-7 * C + 21 * D) / delta * 28
ans3 = 0
if x >= 0 and y >= 0:
    ans3 = 1000 * x + 2000 * y
print(max(ans1, ans2, ans3))
0