| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 148833 | 张法森 | [在线测评解答教程] 求和 | C++ | Time Limit Exceeded | 1000 MS | 268 KB | 198 | 2026-03-01 18:55:02 |
#include<bits/stdc++.h> using namespace std; int main() { int m; cin>>m; double sum=0; int n=0; while(sum<m){ n++; sum+=1.0/n; } cout<<n<<endl; return 0; }