Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
129415 黄本瀚 级数求和 C++ Accepted 100 47 MS 248 KB 180 2024-01-27 08:29:45

Tests(4/4):


#include<bits/stdc++.h> using namespace std; int main(){ int a; int b= 0; double c= 0; cin >>a; while (a>c){ b+= 1; c+=1.0 /b; } cout<<b<<endl; return 0; }


Judgement Protocol: