Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
163035 王垚植 n!大于k C++ Accepted 1 MS 272 KB 177 2026-10-24 11:30:20

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n=1,k,sn=1; cin>>k; for(int i=2;sn<=k;i++){ n++; sn=sn*n; } cout<<n; }