提交时间:2025-10-02 12:37:46

运行 ID: 68429

#include<bits/stdc++.h> using namespace std; int main(){ float s; for(float i=1;i<=100;i++){ s+=1.0/i; } cout<<fixed<<setprecision(3)<<s; return 0; }