Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
144883 陈泊延 满足Sn>k的最小n C++ Wrong Answer 0 MS 264 KB 375 2026-01-24 19:23:27

Tests(0/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ double sn=0; int n=0,k; cin>>k; while(sn<=k){ n++; sn+=1.0/n; } return 0; }


Run Info:

------Input------
7
------Answer-----
616
------Your output-----