poj 1003
来源:互联网 发布:打印机显示网络 编辑:程序博客网 时间:2024/06/15 10:52
poj 1003, 已accept
#include <stdio.h> int main() { float res[300] = {0,0.5},c; int i,num = 0; for (i = 2;i< 300;i++) res[i] = res[i-1] + 1.0/(i+1); while(scanf("%f",&c) && c) { for(i = 1;i < 300;i++) { if(res[i] >= c) { printf("%d card(s)\n",i); break; } } } return 0; }
阅读全文
0 0
- poj 1003
- POJ 1003
- POJ-1003
- poj 1003
- POJ 1003
- POJ 1003
- POJ-1003
- POJ 1003
- poj 1003
- 【poj】1003
- POJ-1003
- POJ 1003
- POJ 1003
- POJ 1003
- poj 1003
- poj 1003
- poj 1003
- POJ-1003
- poj 1002
- Java中对象的大小
- Installing Nginx in Mac OS X Mountain Lion With Homebrew
- Max Sum Plus Plus
- 表格的删除、排序、检索
- poj 1003
- poj 1004
- java入门--抽象和接口
- 但前提是必须选择Document/View结构
- HTML菜鸟入门3
- linux Ubuntu 虚拟机 集群 安装配置 安装git 创建裸仓库0814 1.1
- poj 1005
- Oracle之使用proc增删改查
- 读书笔记_代码大全2第十一章_选择好的变量名