#includeint main(){ freopen("in.txt", "r", stdin); freopen("out.txt", "w", stdout); float a,b=0; for (;scanf("%f",&a)!=EOF;) b+=a; printf("$%.2f\n", b/12); fprintf(stderr, "Over"); fclose(stdin); fclose(stdout); return 0;}
本文共 325 字,大约阅读时间需要 1 分钟。
#includeint main(){ freopen("in.txt", "r", stdin); freopen("out.txt", "w", stdout); float a,b=0; for (;scanf("%f",&a)!=EOF;) b+=a; printf("$%.2f\n", b/12); fprintf(stderr, "Over"); fclose(stdin); fclose(stdout); return 0;}
转载于:https://www.cnblogs.com/nuaa/p/3204436.html