poj.org pro 1003 hangover
2013-07-15 19:38
429 查看
/*poj.org pro 1003 hangover
author: bubble
date: 2013-7-15
*/
author: bubble
date: 2013-7-15
*/
#include<stdio.h> int main(){ double sum; int n; double len; while(scanf("%lf",&sum)!=EOF&&sum!=0.00){ n=1; len=0.00; do{ len+=1.0/(n+1); n++; }while(len<sum); printf("%d card(s)\n",n-1); } return 0; }
相关文章推荐
- POJ1003_Hangover
- poj 1003 Hangover
- poj 1003:Hangover
- POJ 百炼 保研机试 1003:Hangover
- Poj 1003 Hangover
- POJ1003 Hangover
- POJ 1003--Hangover
- POJ 1003 - Hangover
- POJ 1003 Hangover GCC编译
- poj 1003 Hangover
- poj1003 Hangover 解题报告
- poj1003--Hangover
- poj 1003 Hangover
- poj 1003 (nyoj 156) Hangover
- 【POJ】1003. Hangover
- (POJ 1003)Hangover
- POJ 1003 Hangover
- [POJ]1003 Hangover
- POJ_1003_Hangover
- POJ 1003 Hangover