#include <iostream>
#include <stdio.h>
#include <algorithm>
#include <math.h>
#include <string>
#include <string.h>
#include <vector>
#include <queue>
#include <stack>
#include <sstream>
#include <climits>
#include <cstring>
using namespace std;
//1067
int a;
long long int b;
int main(){
while(cin>>a){
b=1;
for(int i=1;i<=a;i++)
b*=i;
cout<<b<<endl;
}
return 0;
}
/**************************************************************
Problem: 1067
User: cust123
Language: C++
Result: Accepted
Time:10 ms
Memory:1520 kb
****************************************************************/
题目1067:n的阶乘
最新推荐文章于 2020-07-02 23:09:24 发布