Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
87392 | Kevin | 【基础题】求和(2) | C++ | Accepted | 1 MS | 264 KB | 157 | 2024-08-09 15:41:10 |
#include<bits/stdc++.h> using namespace std; int main(){ double s=0; for(int i=1;i<=100;i++){ s+=1.0/i; } printf("%.3lf",s); return 0; }