| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 150124 | 曾钰涵 | 满足Sn>k的最小n | C++ | Wrong Answer | 1 MS | 276 KB | 223 | 2026-03-22 11:53:00 |
#include<iostream> #include<cmath> using namespace std; int main(){ double sn=0; int k,n=1; cin>>k; while(sn<=k){ sn=sn+pow(n+1,-1); n++; } cout<<n<<endl; return 0; }
------Input------
7
------Answer-----
616
------Your output-----
1674