提交时间:2026-01-04 18:02:27

运行 ID: 81408

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