标签:输出 1.5 pre 空格 scan tput 3.4 pid rip
http://acm.hdu.edu.cn/showproblem.php?pid=2090
#include<stdio.h> int main() { char str[20]; double a,b, sum=0; while(scanf("%s%lf%lf",str,&a,&b)!=EOF) { sum+=a*b; } printf("%.1lf\n",sum); return 0; }
标签:输出 1.5 pre 空格 scan tput 3.4 pid rip
原文地址:https://www.cnblogs.com/zlrrrr/p/9339638.html