Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
85361 卢语涵 n!大于k C++ Accepted 1 MS 276 KB 185 2024-07-17 10:48:27

Tests(10/10):


Code:

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