結果

問題 No.453 製薬会社
ユーザー finefine
提出日時 2016-12-06 00:45:15
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 197 bytes
コンパイル時間 163 ms
コンパイル使用メモリ 11,528 KB
実行使用メモリ 15,404 KB
最終ジャッジ日時 2023-08-18 16:03:08
合計ジャッジ時間 2,395 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
15,152 KB
testcase_01 AC 77 ms
15,304 KB
testcase_02 WA -
testcase_03 AC 78 ms
15,252 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 76 ms
15,296 KB
testcase_07 AC 77 ms
15,116 KB
testcase_08 WA -
testcase_09 AC 76 ms
15,296 KB
testcase_10 AC 76 ms
15,300 KB
testcase_11 AC 77 ms
15,256 KB
testcase_12 AC 76 ms
15,140 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

c,d=gets.split.map(&:to_f)
tmp1=5 * c - 2 * d
tmp2=3 * d - c
ca=tmp1*3
cb=tmp2*2
da=tmp1
db=tmp2*5
p [4000 * [ca,da * 3].min / 3, 1400 * [5 * cb, 2 * db].min, (4000 * tmp1 + 14000 * tmp2)].max / 13
0