Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
200 | ZRH | n的阶乘 | C++ | Accepted | 0 MS | 256 KB | 356 | 2022-07-22 09:22:06 |
#include<iostream> //输入函数库 #include<iomanip> #include<cmath> //数学函数库 #include<cstdio> #include<ctime> #include<cstring> #include<cstdlib> #include<string> #include<stdlib.h> #include<sys/time.h> using namespace std; int main(){ int x,y=1; cin>>x; for(int i=1;i<=x;i++){ y=y*i; } cout<<y; return 0; }