Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
62007 | xuxingping | 【基础题】求和(2) | C++ | Accepted | 0 MS | 248 KB | 175 | 2025-03-08 16:20:11 |
#include<bits/stdc++.h> using namespace std; int main(){ double result=0.0; for(int i=1;i<=100;i++) result+=1.0/i; cout<<fixed<<setprecision(3)<<result; return 0; }