| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 129445 | 黄曦 | 级数求和 | C++ | Accepted | 100 | 47 MS | 252 KB | 166 | 2024-01-27 08:33:15 |
#include<bits/stdc++.h> using namespace std; int main() { double k,s=0,n=1; cin>>k; while(s<k) {s=s+1/n; n++;} cout<<fixed<<int(n-1); return 0; }