| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 20687 | 张志鹏 | 倒数和 | C++ | Wrong Answer | 0 | 0 MS | 248 KB | 181 | 2021-06-19 19:45:25 |
#include<bits/stdc++.h> using namespace std; double s; double c; int main(){ cin>>s; for(double i=1.0;;i++){ c=c+1/i; if(c>s){ cout<<i-1; return 0; } } }