| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 150112 | 曾钰涵 | 满足条件的数II | C++ | Time Limit Exceeded | 1000 MS | 268 KB | 228 | 2026-03-22 11:45:53 |
#include<bits/stdc++.h> #include<cmath> using namespace std; int main(){ double sn=0; int k,n=1; cin>>k; while(sn<=k){ sn+=pow(n+1,-1); n++; } cout<<n-1<<endl; return 0; }