Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
20683 | 张志鹏 | 印度国王的棋盘 | C++ | Wrong Answer | 0 | 0 MS | 256 KB | 181 | 2021-06-19 19:45:11 |
#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; } } }