OJ-Problems-Source/HDOJ/2090_autoAC.cpp
2016-08-19 16:52:35 +08:00

15 lines
248 B
C++

#include<stdio.h>
int main()
{
double a,b;
char s[100];
double sum = 0.0;
while(scanf("%s", s)!=EOF)
{
scanf("%lf%lf", &a, &b);
sum += a*b;
}
printf("%.1lf\n", sum);
return 0;
}