Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
95070 罗迎甲 n!大于k C++ Accepted 1 MS 276 KB 182 2024-10-26 17:37:47

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int n=0,k,sum=1; cin>>k; while(sum<=k){ n++; sum*=n; if(sum>k) break; } cout<<n; return 0; }