2018/8/27
POJ 1003
#include <iostream>
#include <cstring>
#include <stdio.h>
#include <stdlib.h>
#include <cmath>
#include <map>
#include <algorithm>
using namespace std;
int main()
{
double c;
while(scanf("%lf", &c) != EOF && c != 0.00){
int n = 0, i = 2;
double t = 0.00;
while(t < c){
t += (double)1 / i;
i++;
n++;
}
printf("%d card(s)\n", n);
}
return 0;
}