为什么啊,我感觉没毛病啊,一个都不过
#include<stdio.h> int main() { int k,i; double s=0; scanf("%d",&k); for(i=1;s<k;i++) { s+=1./i; } printf("%d",i); return 0; }