Dumplings
题号:NC218462
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
Special Judge, 64bit IO Format: %lld

题目描述

⑨ likes dumplings best. One day, he had an idea of starting a business. He wanted to open his own dumpling restaurant.
He made a lot of market analysis in advance and purchased kinds of dumplings according to the user's preference. 
Now, he gives inventory and the total value of each  kind of dumplings, and tell you the total market demand for dumplings, please calculate the maximum income he can get.

输入描述:

The first line contains two integers,  and , indicating the number of dumplings and the maximum market demand.
Next lines, each line contains two integers and , which respectively represent the quantity and total price of the i-th kind of dumplings.

输出描述:

Output a number to represent the maximum income.
Your answer is considered correct if its absolute or relative error does not exceed .
示例1

输入

复制
4 40
30 45
10 28
5 11
40 55

输出

复制
76.50000

说明

Our biggest income strategy should be to sell all the second and third types of dumplings and  of the first type of dumplings, and get 28+11+45*\frac{5}{6}=76.5

备注:

It is allowed to take out part of the inventory during sales.