[NOI2012]美食节

Grade Open Time Friday, 19 September 2014, 10:07 am
Discount 0.8 Time Discount Friday, 26 September 2014, 10:07 am
Allow late Yes Close Time Friday, 26 September 2014, 10:07 am
Input file noi12_delicacy.in Output file noi12_delicacy.out

样例如下:

【样例输入】

3 2

3 1 1

5 7

3 6

8 9

【样例输出】

47