Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
70042 杨卓越 n!大于k C++ Accepted 1 MS 276 KB 214 2024-04-13 12:01:48

Tests(10/10):


Code:

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