http://acm.hdu.edu.cn/showproblem.php?pid=1070
模拟题 这也是道简单题,不过要注意
1.If there are more than one cheapest brand, you should output the one which has the largest volume.
2.double类型的比较:http://blog.csdn.net/xuguangsoft/article/details/7833501
#include <iostream>
#include <string>
using namespace std;
int main()
{
int T, n, money, v, day;
int vmin;
double imin, temp;
string brand, strmin;
cin >> T;
while (T--) {
cin >> n;
imin......
阅读全文