Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
37866 | 奚晨瑞 | 【基础题】求和(2) | C++ | Accepted | 0 MS | 244 KB | 151 | 2024-01-23 17:11:26 |
#include<iostream> using namespace std; int main() { float s=0; for(int i=1;i<=100;i++){ s+=(1.0/i); } printf("%.3f",s); return 0; }