Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
129416 刘语晗 级数求和 C++ Accepted 100 46 MS 236 KB 172 2024-01-27 08:29:57

Tests(4/4):


#include <bits/stdc++.h> using namespace std; int main() { double i,k,s=0; long long n=0; cin>>k; while(k>s){ n+=1; s+=1.0/n; } cout<<n; return 0; }


Judgement Protocol: