| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 130187 | 王奕杰 | n!大于k | C++ | Wrong Answer | 1 MS | 268 KB | 415 | 2025-09-08 18:58:23 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ long long n,k; cin>>n; for(int i=1;i<=k;i++){ n*=i; if(n>k){ cout<<i; return 0; } } return 0; }
------Input------
6404
------Answer-----
8
------Your output-----