Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
85432 卢语涵 满足Sn>k的最小n C++ Wrong Answer 0 MS 272 KB 193 2024-07-17 15:31:12

Tests(5/10):


Code:

#include<iostream> using namespace std; int main(){ float n=0,k,s=0; cin>>k; while(s<k){ n++; s=s+1/n; } cout<<n; return 0; }


Run Info:

------Input------
1
------Answer-----
2
------Your output-----
1