我太难了
原题链接https://nuoyanli.com/contest/33/problem/I
计算阶乘
#include<cstdio>
#include<cstring>
#include<cstdlib>
#include<cmath>
#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
long long t;
scanf("%lld",&t);
while(t--)
{
long long n,i,sum=1;
scanf("%lld",&n);
for(i=1; i<=n; i++)
{
sum=sum*i;
}
printf("%lld\n",sum);
sum=1;
}
return 0;
}