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