Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
85362 王珠潏 n!大于k C++ Accepted 1 MS 280 KB 221 2024-07-17 10:49:11

Tests(10/10):


Code:

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