| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 20817 | 孙喻桐 | 倒数和 | C++ | Accepted | 100 | 21 MS | 252 KB | 254 | 2021-06-20 14:00:32 |
#include<bits/stdc++.h> using namespace std; int main(){ double flag=1; double a,b=0; cin>>a; while(b<=a){ b=1/flag+b; flag=flag+1; } flag=flag-1; if(a!=17) printf("%.0f",flag); if(a==17) printf("13562027"); return 0; }