#include "stdio.h" int main(void){ float value,sum=0.0; unsigned n=0; scanf("%f",&value); do { sum+=(float)1.0/++n; } while(sum<value); printf("%u\n",n); return 0; }
posted on 2022-04-12 20:04 王陈锋 阅读(196) 评论(0) 编辑 收藏 举报