結果

問題 No.453 製薬会社
ユーザー compass19compass19
提出日時 2016-12-12 23:43:08
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 18 ms / 2,000 ms
コード長 410 bytes
コンパイル時間 241 ms
コンパイル使用メモリ 10,660 KB
実行使用メモリ 7,964 KB
最終ジャッジ日時 2023-08-19 21:48:17
合計ジャッジ時間 1,080 ms
ジャッジサーバーID
(参考情報)
judge10 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

c, d = map(int, input().split())
can_tuple = list()
if 4*d < 4*c/3:
	can_tuple.append( (4*d, 0) )
else:
	can_tuple.append( (c*4/3, 0) )
if d*7/5 < c*7/2:
	can_tuple.append( (0, d*7/5) )
else:
	can_tuple.append( (0, c*7/2) )
if (5*c-2*d)*4/13 > 0 and (3*d-c)*7/13 > 0:
	can_tuple.append( ((5*c-2*d)*4/13, (3*d-c)*7/13) )


res_max = 0
for x, y in can_tuple:
	res_max = max(res_max, 1000*x+2000*y)
print(res_max)
0