阶乘
摘要:
// 阶乘#includeconst int maxn = 3000;int fac[maxn],len;void fact(int n){ int i,j; memset(fac,0,sizeof(fac)); fac[0]=1; for(i=2;i=0;j--) if(fac[j]) break; len=j+1;}void wofa(int n){ int i; fact(n); for(i=len-1;i>=0;i--) printf("%d",fac[i]); printf("\n");}int main() { int n; scanf 阅读全文