sword @ 2015-07-07 09:31:14
#include<Stdio.h> int main() { double b,s,a; scanf("%lf",&a); for(s=1,b=0;b<=a;s++) b=b+1/s; printf("%.lf",s); return 0; }
by PVYCVJ @ 2015-07-08 20:51:53
stdio.h全小写
s最后要自减1