| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 1180 | 李言 | 编程求1+1/2+1/3+...+1/n | C++ | Accepted | 100 | 0 MS | 252 KB | 140 | 2019-10-05 16:35:12 |
#include<iostream> int main(){ float a=0,b; scanf("%f",&b); while(b>=1){ a=a+1/b; b=b-1; } printf("%.3f",a); return 0; }