(POJ 1004)Financial Management

NOI-1.5(02) 财务管理 阅读详情

 

Financial Management


Description
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.

Input

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.

Output

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.

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

Source

Mid-Atlantic 2001 

 

 

AC code:

 

financial management Introduction to Investment Investment – defined as the commitment of funds to one or more assets that will be held over some future time period in the expectation of reaping future benefits. Investment Environment: Financial Securities 立即下载

相关推荐

企业财务管理系统的设计与实现

科技的飞速发展,使各种管理向科学化、现代化的体制转变。财务管理的模式也随之相应的发生改变。财务管理在各个行业都存在,财务管理的好坏对本单位来说是很重要的。财务记录的清晰,对本单位日常工作起着决定性的作用。财务管理系统对财务的管理提高了财务系统信息的准确懂和及时性,为日常管理提供更加详细、准确、及时的信息,所以财务管理系统应该能为每一个企业提供充足的财务信息和财务情况。

ACM pku 1004 解题报告

Financial Management Time Limit:1000MS  Memory Limit:10000KTotal Submit:14420 Accepted:6246 DescriptionLarry graduated this year and finally has a job. Hes making a lot of money, but somehow never

Manio 2425

避坑指南:Zabbix poller进程100%占用的5种常见原因及解决方案

本文深入剖析了Zabbix poller进程占用率高达100%的五大常见原因,包括监控项与进程数不匹配、不可达主机资源浪费、数据库性能瓶颈、监控项配置不合理以及版本缺陷。文章提供了从系统化诊断到针对性解决方案的完整指南,并重点介绍了如何通过优化zabbix_server.conf中的StartPollers等关键参数进行有效调优,帮助运维人员从根本上解决这一经典性能问题。

7z8x2c4v6b9的博客 265

Financial Management

 FJNU.1039PKU.1004DescriptionLarry 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

linyq@BambooFan ~ 755

嵌入式开发实战:如何用cJSON库在STM32上实现轻量级JSON通信(附完整代码)

本文详细介绍了如何在STM32嵌入式系统中使用cJSON库实现高效的JSON通信方案。针对嵌入式环境的内存限制,提供了内存优化策略、cJSON库的深度定制方法以及完整的通信流程实现代码,帮助开发者解决JSON解析效率低下和跨平台兼容性等核心挑战。

star5的专栏 480

Unity2020 发布Android包,下载安装配置JDK、SDK、NDK详细教程

配置成功页面 JDK、SDK、NDK

qq_41263535的博客 1万+

POJ 1004:Financial Management

Description Larry今年毕业并且找了一份工作。他赚了很多钱,但是不知道为什么他从来不觉得自己赚的已经足够。Larry决定他需要管理他的钱并且解决他的金融问题。第一步是需要了解他的钱怎么样了。Larry有他的银行账户报表,希望了解他有多少钱。帮助Larry写一个程序,获得他过去12个月的余额,并且计算他的平均账户余额。 Input 输入有12行。每行都包含一个月的余额。每个数字都...

weixin_30950887的博客 135

Cesium生态盘点:超图、火星3D等15个二次开发框架对比

本文深入解析Cesium生态中的15个二次开发框架,包括超图、火星3D等主流选择,帮助开发者根据项目需求进行精准选型。从性能表现、功能完备性、开发友好度等维度进行对比,特别适合需要处理地理空间数据和构建三维可视化的JavaScript开发者。

weixin_28197941的博客 507

POJ——1004(Financial Management)问题

程序代码如下: import java.text.DecimalFormat; import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner get=new Scanner(System.i...

WU2629409421perfect的博客 853

【QEMU系统分析之TPM篇(一)】

本文以 QEMU 8.2.2 为例,分析其 TPM-emulator 模块的实现,并为 QEMU 添加 Windows 平台的TPM 模拟器的支持。

David唐辉的博客 1198

高通开发系列 - Camera之摄像头调试记录

记录一些调试内容

fulinux的博客 1223

POJ 1004 Financial Management

POJ 1004   Financial Management Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 165904 Accepted: 61731 Description Larry graduated this year and finally has a

jiangzihao110120的博客 409

Transformer实战(33)——高效自注意力机制

在本节中,我们学习了如何在硬件资源受限的情况下减轻运行大模型的负担,介绍了高效的稀疏 Transformer 模型,通过近似技术(如 Linformer、BigBird 和 Performer) 用稀疏矩阵替代全自注意力矩阵。并观察它们在各种基准测试中的表现,例如计算复杂度和内存复杂度。结果表明,这些方法可以在不牺牲性能的情况下将平方级复杂度降低到线性复杂度。

盼小辉丶的博客 3345

POJ 1004 Financial Management [解题报告] Java

http://www.acmerblog.com/POJ-1004-Financial-Management-blog-213.html

expleeve 804

一张图读懂 SAP S/4HANA Cloud 与 SAP BTP 的扩展版图

本文解析了SAP S/4HANA Cloud的扩展技术谱系,提出扩展应分为on-stack(系统内)和side-by-side(并行)两种路径,并沿着低代码到专业代码的能力梯度进行分层。on-stack扩展包括面向业务人员的Key User Extensibility和面向开发者的Developer Extensibility,强调贴近核心业务对象;side-by-side扩展则依托SAP BTP平台,提供SAP Build低代码工具、CAP开发框架和ABAP云环境三种方案,支持解耦创新。文章通过五个真实案

2007 年 ~ 2025 年,深耕 SAP 技术 18 年 269

jre9下载 jdk9

(Java SE Runtime Environment 9.0) 9.0u175 官方最新版 【x86|x64】

POJ 1004 Financial Management

#include using namespace std; int main() { double a[15]; double sum=0; int i; for(i=1;i<=12;i++) { cin>>a[i]; sum+=a[i]; } cout<<"$"<<sum/12.0<<endl; }

笨鸟 786

最新的sdio 4.0 spec 协议标准 带书签 高清完整PDF版

Part-E1-SDIO-Specification-Ver4.00-Final-120220.pdf:最新的sdio 4.0 spec 协议标准 带书签 高清完整PDF版,包括SDIO 接口的外设,SDIO 接口官方协议等。

POJ 1004 Financial Management

POJ 1004 Financial Management Time Limit:1000MS Memory Limit:10000K Total Submissions:204286 Accepted:77740 Description Larry graduated this year and finally has a ...

weixin_30488085的博客 109

假人有限元模型

假人模型,车辆碰撞假人有限元模型,适合做乘员安全的研究者利用

VB摄像头监控

该VB模块可对摄像头捕获的画面进行录像等,可在创建的窗口进行控制

POJ 1004 Financial Management

POJ 1004 Financial Management 原来前面的几道都是简单题,好吧,练下手,就当熟悉下吧。 此题求12个月的平均值,代码如下:   import java.util.Scanner; public class Main { public void run() throws Exception { Scanner scan = new Scan...

翔之骓 194

POJ 1004 Financial Management - 四舍五入 - 强制类型转换

POJ 1004 Financial Management 题目本意是:计算十二个精确到百分位的数的平均值,并将其千分位四舍五入。容易的题目。 讨论区中有同学认为,题目要求输出精确到小数点后两位的小数(如:“$152.10”)。但我认为只需将其千分位四舍五入就可以了,并不一定要输出到百分位(如:输出“$152.1”)。确实我的代码也AC了。 讨论区中有说到,“%.2lf本身原来已经四舍五入了

ChenK在学习! 1046

POJ1004——Financial Management

http://poj.org/problem?id=1004 Description 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 gra...

qq_43638329的博客 209

poj1004 Financial Management

求平均值

李典金 355

POJ1004 Financial Management

题目链接:http://poj.org/problem?id=1004 题目分析: 一道简单的求平均数问题。有什么需要注意的话,就是注意一下数据类型吧。 源代码: #include using namespace std; int main() { double sum = 0.0; for (int i = 0; i < 12; i++) { do

Hugo的编程学习记录 906

POJ1004(Financial Management)

program POJ1004; var i:longint; ans,x:real; begin assign(input,'POJ1004.in'); reset(input); assign(output,'POJ1004.out'); rewrite(outp

110
上一篇: (POJ 1003)Hangover
下一篇: (POJ 1005)I Think I Need a Houseboat
accode
博客等级 码龄16年 0粉丝 7原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址