打表也能WA,服了
查看原帖
打表也能WA,服了
1243618
Jokersheng楼主2024/8/6 13:32
#include <bits/stdc++.h>
using namespace std;

long long n,a[13]={0,1,2,6,24,120,720,5040,40320,362880,3628800,39916880,479001600};

int main(){
	cin>>n;
	cout<<a[n];
	return 0;
}
2024/8/6 13:32
加载中...