POJ 1003(累加)
来源:互联网 发布:迪杰斯特拉算法视频 编辑:程序博客网 时间:2024/06/03 18:12
/* * POJ_1003.cpp * * Created on: 2013年10月14日 * Author: Administrator */#include <iostream>#include <cstdio>using namespace std;int main(){double n;while(scanf("%lf",&n)!=EOF,n !=0.00){double sum = 0;int counter = 1;while(sum < n){sum += (1.0/(counter+1) );counter++;}printf("%d card(s)\n",counter-1);}return 0;}
- POJ 1003(累加)
- POJ 1004(累加)
- POJ 1005(累加)
- poj 3233 矩阵乘法累加
- poj 1503 高精度加法,累加
- 累加
- 累加
- 累加
- (高精度运算4.7.23)POJ 1503 Integer Inquiry(大数累加)
- POJ 3086 Triangular Sums(我的水题之路——三角数累加)
- (简单模拟2.1.1)POJ 2017 Speed Limit(跨项累加sumLen += (t2-t1)*v )
- (高精度运算4.7.31)POJ 2413 How many Fibs?(大数累加)
- (Relax ST1.8)POJ 1517 u Calculate e(求各阶乘累加之和)
- poj 2413 How many Fibs? 大数累加模板+字符串模拟大数比较大小
- poj 3468 A Simple Problem with Integers(线段树区间累加)
- 整数累加
- 分数累加
- 分数累加
- hdu 1176 免费馅饼
- android应用webview时js接口不能用的问题
- 二维数组名及下标
- opencv2.3.1安装、编译与配置
- android Notification 的使用
- POJ 1003(累加)
- SVN: URL access forbidden for unknown reason,svn提示没有操作权限的解决方法
- PHP计数
- struts 2读书笔记-----Convention插件与“约定”支持[转自树上月]
- 内存地址对齐
- MIPS汇编指令
- reverse enginreing a D-link backdoor
- 字典树
- iOS Framework: Introducing MKNetworkKit (MKNetworkKit介绍,入门,翻译)