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.00
489.12
12454.12
1234.10
823.05
109.20
5.27
1542.25
839.18
83.99
1295.01
1.75
样例输出
1581.42

注:此题为:南阳oj 题目72 Financial Management

说明:输入12个月的钱数,求平均值

已AC源代码:

#include<iostream>
#include<cstdio>
using namespace std;
int main()
{double m,ave,sum=0;int i;for(i=0;i<12;++i){cin>>m;sum+=m;}ave=sum/12;printf("%.2lf\n",ave);return 0;
}

南阳oj 题目72 Financial Management相关推荐

  1. 财务管理c语言oj,九度OJ 1141:Financial Management (财务管理) (平均数)

    时间限制:1 秒 内存限制:32 兆 特殊判题:否 提交:939 解决:489 题目描述: Larry graduated this year and finally has a job. He's ...

  2. 南阳OJ 题目64:小学生算术

    题目信息:题目链接 小学生算术 时间限制:3000 ms  |  内存限制:65535 KB 难度:1 描述 很多小学生在学习加法时,发现"进位"特别容易出错.你的任务是计算两个三 ...

  3. 南阳oj 题目722 数独

    数独 时间限制:1000 ms | 内存限制:65535 KB 难度:4 描述 数独是一种运用纸.笔进行演算的逻辑游戏.玩家需要根据9×9盘面上的已知数字,推理出所有剩余空格的数字,并满足每一行.每一 ...

  4. 南阳oj 题目290 动物统计加强版 字典树

    动物统计加强版 时间限制:3000 ms | 内存限制:150000 KB 难度:4 描述 在美丽大兴安岭原始森林中存在数量繁多的物种,在勘察员带来的各种动物资料中有未统计数量的原始动物的名单.科学家 ...

  5. Python爬虫练习(爬取OJ题目和学校信息通知)

    爬取OJ题目和学校信息通知 一.爬取南阳理工OJ题目 1. 初步分析 2. 代码编写 二.爬取学校信息通知 1. 每页url分析 2. 每页内容爬取 总代码 三.总结 参考 一.爬取南阳理工OJ题目 ...

  6. Introduction to Financial Management

    Recently,i am learning some useful things about financial management by reading <Essentials of Co ...

  7. 南阳oj a+b问题

    #include<iostream> using namespace std; int main () { int a,b; cin>>a>>b; cout< ...

  8. NUC1011 Financial Management【数学计算+水题】

    Financial Management 时间限制: 1000ms 内存限制: 10000KB 问题描述 Larry graduated this year and finally has a job ...

  9. SAP FICO - Functional Area/ Financial Management Area(FM Area)

    Functional Area 是功能范围,是一个对基于活动发生的费用排序的组织单位. 例如:生产,管理,销售,研发等. 功能范围允许建立符合要求的财务报表. 如果该组织遵循销售成本会计,那必须在SA ...

  10. 九度OJ 题目1179:阶乘

    /********************************* * 日期:2013-2-8 * 作者:SJF0115 * 题号: 九度OJ 题目1179:阶乘 * 来源:http://ac.jo ...

最新文章

  1. java aes php_php和java的aes默认加密算法有点区别及解决方法。
  2. 输入带空格字符串的两种方法
  3. laravel increment出现了翻倍递增_中国股市:如何判断“强庄股”的出现,看懂主力心甘情愿送钱上门...
  4. 将1bpp的bmp图像存储为1bpp或者2bpp的tiff格式
  5. 学习 lodash 源码整体架构,打造属于自己的函数式编程类库
  6. Android代码导出数据库,导入/导出到android sqlite数据库
  7. redis详解- 过期删除策略和内存淘汰策略
  8. SQL SERVER 2008 恢复远程备份文件
  9. c++两数组合并算法
  10. openfire的搭建与运行(转)
  11. matplotlib--python的数据可视化入门
  12. 《数字图像处理(第三版)》 第一章 绪论 笔记
  13. java基础习题_Java基础知识练习题及答案
  14. 动手实践感受下企业微信的网页授权登录、扫码授权登录
  15. 移动脑电在神经发展障碍研究中的运用
  16. javascript 判断参数是否为非0整数数字或者整数数字字符串的简单方法(小装逼)
  17. 1.1 创造性和动机
  18. 原理 | 分布式链路跟踪组件 SOFATracer 和 Zipkin 模型转换
  19. Windows 显示/隐藏文件扩展名
  20. postman显示返回的base64图片验证码、二维码

热门文章

  1. 设备台式计算机显示叹号,台式电脑出现叹号不能上网怎么办_台式机电脑出现感叹号不能上网的处理方法-系统城...
  2. 嵌入式C语言开发学习笔记 —— CSPL
  3. 收集一些电子书下载的网站
  4. 深圳居住证微信续签,续期
  5. 计算机5级什么水平考试,怎么选择2015计算机等级考试级别
  6. 计算机主机一闪一闪的无法启动,电脑无法正常启动,启动时绿灯一闪一闪的
  7. Ubuntu16.04/linux系统旋转显示器屏幕即竖屏显示(亲测)
  8. 大白话图文结合的方式讲解什么是CAP
  9. 10.12 SNK中国 游戏客户端 二面40min
  10. python如何绘制曲线图_Python matplotlib 如何绘制双Y轴曲线图?