提交时间:2025-10-04 07:59:07

运行 ID: 68438

#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; }