Home STD Contest Notification Clarification Problems Ranklist Status Print Sign Out

View Notification

1002´úÂ룬½ö¹©²Î¿¼
Time : 2007-05-18 18:04:29

#include<stdio.h>
int main()
{
  double price,num,result=0;
  char name[20];
  while(scanf("%s%lf%lf",name,&num,&price)!=EOF)
    result+=num*price;
  printf("%.1f\n",result);
  return 0;
}

Posted By lcy


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-05-20 12:16:07, Gzip enabled