Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
68438 | sh25_wuyy | 【基础题】求和(2) | C++ | 通过 | 0 MS | 240 KB | 186 | 2025-10-04 07:59:07 |
#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; }