mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
ddd34a4f1c
2000-2099
15 lines
248 B
C++
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;
|
|
}
|