| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 325303 | 沈心 | 【C2-4】求恰好使s=1+1/2+1/3+…+1/n的值大于X时n的值。 | C++ | Wrong Answer | 0 | 1 MS | 252 KB | 158 | 2025-06-05 17:03:04 |
#include<iostream> using namespace std; int main(){ double s=0,n=1; int x; cin>>x; while(s<x){ s=s+1.0/n; n++; } cout<<n; return 0; }