| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 48498 | 石利伟 | 倒数和 | C++ | Wrong Answer | 10 | 0 MS | 256 KB | 228 | 2022-07-15 22:14:59 |
#include<bits/stdc++.h> using namespace std; int main(){ double s,coun=1; cin>>s; for(double n=2;;n++){ for(double j=2;j<=n;j++){ coun+=1/j; } if(coun>s){ cout<<n+1; return 0; } } return 0; }