Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
101001 | 李佳璟 | 满足Sn>k的最小n | C++ | Accepted | 1 MS | 272 KB | 182 | 2024-12-14 12:02:13 |
#include<iostream> using namespace std; int main(){ double sn=0; int k,n=1; cin>>k; while(sn<=k){ sn += 1.0/n; n++; } cout<<n-1; }