POJ 1004:Financial Management
| Time Limit: 1000MS | Memory Limit: 10000K | |
| Total Submissions: 165062 | Accepted: 61316 | 
Description
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.
Input
Output
in the output.
Sample Input
100.00
489.12
12454.12
1234.10
823.05
109.20
5.27
1542.25
839.18
83.99
1295.01
1.75
Sample Output
$1581.42
水题,求十二个数的平均值。
代码:
#include <iostream>
using namespace std;
int main()
{
float sum=0.0,a;int i;
for(i=1;i<=12;i++)
{
cin>>a;
sum+=a;
}
printf("$");
printf("%.2lf\n",sum/12);
return 0;
}
版权声明:本文为博主原创文章,未经博主允许不得转载。
POJ 1004:Financial Management的更多相关文章
- 九度OJ 1148:Financial Management(财务管理) (平均数)
		
与1141题相同. 时间限制:1 秒 内存限制:32 兆 特殊判题:否 提交:843 解决:502 题目描述: Larry graduated this year and finally has a ...
 - 九度OJ 1141:Financial Management (财务管理) (平均数)
		
时间限制:1 秒 内存限制:32 兆 特殊判题:否 提交:939 解决:489 题目描述: Larry graduated this year and finally has a job. He's ...
 - Financial Management POJ - 1004
		
Financial Management POJ - 1004 解题思路:水题. #include <iostream> #include <cstdio> #include ...
 - POJ 3100 Root of the Problem || 1004 Financial Management 洪水!!!
		
水两发去建模,晚饭吃跟没吃似的,吃完没感觉啊. ---------------------------分割线"水过....."--------------------------- ...
 - poj 1004:Financial Management(水题,求平均数)
		
Financial Management Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 126087 Accepted: ...
 - Financial Management                                                       分类:            POJ             2015-06-11 10:51    12人阅读    评论(0)    收藏
		
Financial Management Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 164431 Accepted: ...
 - [POJ] #1004# Financial Management : 浮点数运算
		
一. 题目 Financial Management Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 173910 Acc ...
 - [POJ] Financial Management
		
Financial Management Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 182193 Accepted: ...
 - 练习英语ing——[POJ1004]Financial Management
		
[POJ1004]Financial Management 试题描述 Larry graduated this year and finally has a job. He's making a lo ...
 
随机推荐
- 吴裕雄--天生自然JAVAIO操作学习笔记:RandomAccessFile
			
import java.io.File ; import java.io.RandomAccessFile ; public class RandomAccessFileDemo01{ // 所有的异 ...
 - call 和 apply 用法
			
ECMAScript规范中,所有函数都包含这两个方法,并且两个方法的使用基本一致,都是用于改变函数的作用域,即改变函数体内 this 指向.不同的是 call 方法的第二个参数可以接收任意个参数,以逗 ...
 - 卸载重装ngin的问题解决方案
			
1,卸载nginx不保留配置文件 $ sudo apt-get --purge remove nginx 2,卸载自动安装且不再需要的依赖包 $ sudo apt-get autoremove 3,卸 ...
 - angular.js开发   将多页面开发成单页面
			
用angulara.js做单页面开发时,由于不能跨页面取数据,又需要传参,可以采用:$scope.step=0/1来解决这个问题,设置初始值为想要的页面即可.
 - maven知识结构笔记
			
1.什么是maven Maven 翻译为"专家"."内行",是 Apache 下的一个纯 Java 开发的开源项目.基于项目对象模型(缩写:POM)概念,Mav ...
 - 3-安装RabbitMQ
			
1. 安装erlang 1.1 下载erlang http://www.erlang.org/downloads/20.1 yum -y install make ncurses-devel gcc ...
 - Win10下数据增强及标注工具安装
			
Win10下数据增强及标注工具安装 一. 数据增强利器—Augmentor 1.安装 只需在控制台输入:pip install Augmentor 2.简介 Augmentor是用于图像增强的软件 ...
 - Vue2.x双向数据绑定
			
1.vue双向绑定原理 vue.js 则是采用数据劫持结合发布者-订阅者模式的方式,通过Object.defineProperty()来劫持各个属性的setter,getter,在数据变动时发布消息给 ...
 - c# 外挂操作(内存操作)(内存读写取窗口句柄移动窗口取模块地址)工具类
			
来源于网上 参考 https://www.cnblogs.com/fuhua/p/5877781.html 等众多文章 详情取看我第二个例子封装功能较多 https://www.cnblogs.co ...
 - idea安装Maven Helper
			
1. File -> Settings... 2. 选择 Plunins, 查询 Maven Helper,如果没有,点击 Search in repositories 3. 选择 Maven ...