#include<stdio.h>
int main()
{
int n,b[100],i,j,c=0,k=0;
scanf("%d",&n);
char a[100];
for(i=0;i<=n;i++)
{scanf("%c",&a[i]);
}
unsigned long long ret=1,ret1=1;
for(i=1;i<=n;i++)
{ret*=i;
}
for(i=0;i<=n;i++)
{for(j=i;j<=n;j++)
{if(a[i]-'0'==a[j]-'0')
c++;
}
b[k]=c;c=0;k++;
}
for(i=0;i<k;i++)
{ret1*=b[i];
}
printf("%d",ret/ret1);
return 0;
}
标签:int,29.1073,scanf,long,ret1,ret,100 From: https://blog.51cto.com/u_15758636/5896566