提交时间:2019-10-02 18:12:55

运行 ID: 1124

#include<iostream> int main(){ double a=1,b=0,c; scanf("%lf",&c); while(a<=c){ b=b+1/a; a=a+1; } printf("%.3lf",b); return 0; }