NYOJ 72 Financial Management
来源:互联网 发布:数据库的触发器怎么写 编辑:程序博客网 时间:2024/05/22 22:16
Financial Management
时间限制:3000 ms | 内存限制:65535 KB
难度:1
- 描述
- Larry graduated this year and finally has a job. He's making a lot of money, but somehow never seems to have enough. Larry has decided that he needs to grab hold of his financial portfolio and solve his financing problems. The first step is to figure out what's been going on with his money. Larry has his bank account statements and wants to see how much money he has. Help Larry by writing a program to take his closing balance from each of the past twelve months and calculate his average account balance.
- 输入
- The input will be twelve lines. Each line will contain the closing balance of his bank account for a particular month. Each number will be positive and displayed to the penny. No dollar sign will be included.
- 输出
- The output will be a single number, the average (mean) of the closing balances for the twelve months. It will be rounded to the nearest penny, preceded immediately by a dollar sign, and followed by the end-of-line. There will be no other spaces or characters in the output.
- 样例输入
100.00489.1212454.121234.10823.05109.205.271542.25839.1883.991295.011.75
- 样例输出
1581.42
#include<stdio.h>int main(){ double num,x,sum; int i; sum=0; for(i=1;i<=12;i++) { scanf("%lf",&num); sum=sum+num; } x=sum/12; printf("%.2lf\n",x); return 0;}
- NYOJ--72--Financial Management
- NYOJ 72 Financial Management
- NYOJ 72 Financial Management
- NYOJ 72 Financial Management
- 【NYOJ】[72]Financial Management
- NYOJ:72-Financial Management
- nyoj题目72:Financial Management
- NYOJ 72 Financial Management【简单题】
- NYOJ-Financial Management
- NYOJ-ACM-Financial Management
- 72 Financial Management
- 题目72 Financial Management
- 题目72-Financial Management
- 南阳oj_(72)Financial Management
- 南阳题目72-Financial Management
- NYOJ-72-Financial Management-2013年09月26日09:37:24
- NYOJ-72-Financial Management-2013年10月12日14:58:32
- Financial Management
- Havel-Hakimi定理(判断一个序列是否可图)
- hdu 2167 Pebbles(状态压缩DP)
- 渤海商品现货盘口术语解释
- POJ 1840 Eqs
- 转载_Linux下如何查看系统启动时间和运行时间
- NYOJ 72 Financial Management
- Ultraiso使用心得
- 滤波器选择
- 求出100以内的所有素数--筛选法和根号法
- LeetCode-Gray Code
- 腾讯2009校园招聘(软件开发职位方向笔试题与答案)
- 【解密】阿里UED闯关第三季
- 1896 Stones(优先队列)
- awk 教程