\rper[i]=tmp;\r)\r}else{\r++count;/*\r??*/\r/*p“*/\rprintf(n%s”per);\r)\rreturn;\r)\rintmain(void)\r(\rinti=time(NULL);\rcharper[]="ABCDn;\rpermutation(per,0,strlen(per));\rprintf(nThetotal:%d",count);\rreturn0;\r}\r/*\r*Combination.c\r*!\r*"#$%WinXPSP2+CL8.0\r*&'()2006.2Ver0.01\r**+88250\r*,-.E-mail:DL88250@gmail.comQQ:845765\r#include<stdio.h>EvaluationWarning:ThedocumentwascreatedwithSpire.PDFfor.NET.\r#defineMAX_NUM20\rintcomb[MAX_NUM];\rvoidcombination(intm,intn)\r(\rinti,j;\rfor(i=m;i>=n;i--){\rcomb[n]=i;/*/012?“3”45*\rif(n>1){\r/*\r6p?78?9:*/\rcombination(i-1,n-1);\r}else{\r/*;<=>??@*/\rfor(j=comb[0];j>0;j--){\rprintf(n%cnrcomb[j]+64);\r}\rprintf(n;\r)\r)\rreturn;\r)\rintmain(intargc,char*argv[])\r(\rcomb[0]=2;\rcombination(4zcomb[0]);/AC(4Z2)A/\rreturn0;