| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 149933 | 万嘉宇 | [在线测评解答教程] 求和 | C++ | Time Limit Exceeded | 1000 MS | 272 KB | 198 | 2026-03-21 09:45:12 |
#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; }