Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
115446 | 唐诗阳 | 15求n!>m | C++ | Accepted | 1 MS | 272 KB | 270 | 2025-03-30 14:34:11 |
#include<iostream> #include<cstdio> //scanf()\printf() #include<cstring> #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int s=1,n=1,m; cin>>m; while(s<=m){ n++; s*=n; } cout<<n; return 0; }