杭电2090

 1 //这题是有多水。。。。。。。
 2 #include<stdio.h>
 3 char s[100];
 4 int main()
 5 {
 6     double n,price,sum=0;
 7     while(~scanf("%s%lf%lf",s,&n,&price))
 8         sum+=n*price;
 9     printf("%.1lf\n",sum);
10 }

 

posted @ 2016-11-16 18:35  Posase  阅读(275)  评论(0编辑  收藏  举报