Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
85364 叶城俊 n!大于k C++ Accepted 1 MS 272 KB 334 2024-07-17 10:52:27

Tests(10/10):


Code:

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