| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 72702 | sh25_zhuwy | 级数求和 | C++ | 通过 | 0 MS | 248 KB | 217 | 2025-11-02 13:53:12 |
#include <bits/stdc++.h> using namespace std; int main() { double k,n=1,s=0.0; cin>>k; while(1) { s+=1.0/n; if(s>k) { break; } n++; } cout<<fixed<<setprecision(0)<<n; return 0; }