Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
38668 | chenyifei | 【基础题】求和(2) | C++ | Accepted | 0 MS | 236 KB | 149 | 2024-01-27 21:10:11 |
#include<iostream> using namespace std; int main() { double s=0; for(int i=1;i<=100;i++){ s=s+1.0/i; } printf("%.3f",s); return 0; }