Assemble
题目描述
[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=243&page=show_problem&problem=3276
[PDF](https://uva.onlinejudge.org/external/121/p12124.pdf)
![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12124/99811609a9e3e7125b7f2ed1660ddac5ad1b1bbd.png)
输入输出格式
输入格式
![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12124/97a2280e2816dd2926043b3dee9b29a8df18b66e.png)
输出格式
![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12124/70d7c1a589f10419271472f57958897736e400e5.png)
输入输出样例
输入样例 #1
1
18 800
processor 3500_MHz 66 5
processor 4200_MHz 103 7
processor 5000_MHz 156 9
processor 6000_MHz 219 12
memory 1_GB 35 3
memory 2_GB 88 6
memory 4_GB 170 12
mainbord all_onboard 52 10
harddisk 250_GB 54 10
harddisk 500_FB 99 12
casing midi 36 10
monitor 17_inch 157 5
monitor 19_inch 175 7
monitor 20_inch 210 9
monitor 22_inch 293 12
mouse cordless_optical 18 12
mouse microsoft 30 9
keyboard office 4 10
输出样例 #1
9