OJ-Problems-Source/HDOJ/2090_autoAC.cpp

15 lines
248 B
C++
Raw Normal View History

#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;
}