PS:输入麻烦...我还以为是输入一个就输出一个...后来看了大神的才知道....暴力破解了...

代码;

#include "stdio.h"
int main(){
    double sum1=0,a,b;
    while(~scanf("%*s %lf %lf",&a,&b))
        sum1+=a*b;
        printf("%.1lf\n",sum1);
    return 0;
}