| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 78287 | sh25_shengmy | 级数求和 | C++ | Accepted | 0 MS | 240 KB | 253 | 2025-12-26 15:35:21 |
#include <iostream> using namespace std; int main() { int k; cin >> k; double sum = 0.0; int n = 0; while (sum <= k) { n++; sum += 1.0 / n; } cout << n << endl; return 0; }