#include<stdio.h>
int main()
{
int b1,b2;
double b,c;
double d=0;
char a;
while(scanf("%s %lf %lf",&a,&b,&c)!=EOF)
{
b1=b*c*100;
b2=b1%10;
d=d+b*c-b2/100.0;
if(b2>4)
d=d+0.1;
}
printf("%.1f\n",d);
return 0;
}
C语言入门
最新推荐文章于 2024-11-03 15:30:58 发布