Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
2348 邓小龙 n!大于k C++ Accepted 0 MS 264 KB 241 2023-12-23 18:53:20

Tests(10/10):


Code:

# include<iostream> using namespace std; int main() { int k,s=1, n=0; cin>>k; while(true) { n++; s*=n; if(s>k) { break; } } cout<<n; return 0; }