POJGrids基本练习题资料_第1页
POJGrids基本练习题资料_第2页
POJGrids基本练习题资料_第3页
POJGrids基本练习题资料_第4页
POJGrids基本练习题资料_第5页
已阅读5页,还剩88页未读 继续免费阅读

付费下载

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

POJ Grids 基本练习题资料POJ1004 Financial Management .- 3 -POJ1664 放苹果 .- 5 -POJ2675 计算书费 .- 7 -POJ2676 整数的个数 .- 9 -POJ2679 整数的立方和 .- 11 -POJ2680 化验诊断 .- 12 -POJ2684 求阶乘的和 .- 15 -POJ2687 数组逆序重放 .- 16 -POJ2688 求字母的个数 .- 17 -POJ2689 大小写字母互换 .- 18 -POJ2694 逆波兰表达式 .- 19 -POJ2696 计算表达式的值 .- 20 -POJ2699 自整除数 .- 22 -POJ2701 与 7 无关的数 .- 23 -POJ2702 密码翻译 .- 24 -POJ2703 骑车与走路 .- 26 -POJ2707 求一元二次方程的根 .- 27 -POJ2714 求平均年龄 .- 29 -POJ2715 谁拿了最多的奖学金 .- 30 -POJ2718 晶晶赴约会 .- 33 -POJ2719 陶陶摘苹果 .- 34 -POJ2720 大象喝水 .- 35 -POJ2722 学分绩点 .- 36 -POJ2733 判断闰年 .- 38 -POJ2734 十进制到八进制 .- 39 -POJ2750 鸡兔同笼 .- 40 -POJ2753 菲波那契数列 .- 41 -POJ2758 菲波那契数列(2) .- 42 -POJ2764 数根 .- 43 -POJ2767 简单密码 .- 45 -POJ2780 Evas Problem .- 48 -POJ2786 Pell 数列 .- 49 -POJ2796 数字求和 .- 50 -POJ2807 两倍 .- 51 -POJ 2808 校门外的树 .- 53 -POJ2856 计算邮资 .- 55 -POJ2870 求矩阵的加法 .- 57 -POJ2871 整数奇偶排序 .- 59 -POJ2882 Program I .- 61 -POJ2883 checking order.- 63 -POJ2886 能被 3 除尽的数之和 .- 65 -POJ2887 能被 3、5 、 7 整除的数 .- 66 -POJ2888 字符串中的数字 .- 68 - 2 -POJ2926 算数运算 .- 70 -POJ2927 判断数字个数 .- 71 -POJ2930 加减乘除 .- 73 -POJ2933 停车场收费 .- 75 -POJ2938 按顺序输出 .- 77 -POJ2943 小白鼠排队 .- 78 -POJ3142 球弹跳高度的计算.- 80 -POJ3164 奇偶排序 .- 81 -POJ3195 最大公约数 .- 82 -POJ3248 最大公约数 .- 83 -POJ3255 十进制到六进制 .- 85 -POJ3670 计算鞍点 .- 87 -POJ3708 1 的个数 .- 89 -POJ3756 多边形内角和 .- 91 - 3 -POJ1004 Financial ManagementTime Limit: 1000ms Memory limit: 10000kB 题目描述Larry graduated this year and finally has a job. Hes 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 whats 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- 4 -Global No. 6 思路:这道题就是计算一下 12 个月的平均工资。代码:#includeusingnamespace std;intmain()double a12;int i;for(i=0;iai;double sum=0.0;for(i=0;im,必有 n-m 个盘子空着,去掉他们对白放苹果方法数目不产生影响;即 if(nm),f(m,n)=f(m,m) 当 nm 时会返回 f(m,m),所以终会达到出口“m=0”程序代码:#includeusing namespace std;int count(int x,int y)if(y=1|x=0) return 1;if(xt;for(int i=0;imn;cout#includeusing namespace std;#define M 100int main()int n,i,j,count10; double price10=28.9,32.7,45.6,78.0,35.0,86.2,27.8,43.0,56.0,65.0; double paid10,sum;cinn; for(j=1;jcounti;paidi=pricei*counti;sum+=paidi; cout#define N 100using namespace std;int main()int k,i,c1

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论