Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
100994 蔡佳轩 满足Sn>k的最小n C++ Accepted 1 MS 268 KB 182 2024-12-14 12:01:11

Tests(10/10):


Code:

#include <iostream> using namespace std; int main(){ double sn=0; int n=1,k; cin>>k; while(sn<=k){ sn += 1.0/n; n++; } cout<<n-1; }