| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 80664 | sh25_wangsj | 级数求和 | C++ | Accepted | 1 MS | 244 KB | 241 | 2026-01-04 15:26:29 |
#include<bits/stdc++.h> using namespace std; int main(){ int k; cin>>k; double s=0; for(int n=1;;++n){ s+=1.0*1/n; if(s>k){ cout<<n; break; } } return 0; }