Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
87863 Kevin 满足Sn>k的最小n C++ Accepted 1 MS 272 KB 169 2024-08-15 16:33:56

Tests(10/10):


Code:

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