Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
129650 Microsoft 级数求和 C++ Accepted 100 47 MS 244 KB 205 2024-01-27 09:29:16

Tests(4/4):


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


Judgement Protocol: