这就是一个坑爹的题目,没有输出,也能AC;我还是第一次看到,一次过的,大家看看吧…………
#include<stdio.h>
#include<cstring>
#include<algorithm>
using namespace std;
int main()
{
int i,j;double t1,t2,tt=0;char a[50];
while(~scanf("%s%lf%lf",a,&t1,&t2))
{
tt+=t1*t2;
}
printf("%.1lf\n",tt);
return 0;
}