Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
116166 唐诗阳 n!大于k C++ Accepted 0 MS 276 KB 319 2025-04-06 15:08:20

Tests(10/10):


Code:

#include<iostream> #include<cstdio> //scanf()\printf() #include<cstring> #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ long long n=1,sum=1,k; cin>>k; while(n<=k){ n++; sum*=n; if(sum>k){ break; } } cout<<n; return 0; }