A C Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3107 Accepted Submission(s): 2008 Problem DescriptionAre you excited when you see the title "AC" ? If the answer is YES , AC it ; You…
题意: 给出字符A.则求全排列 A(n,m)=n!/(n-m)! 给出字符C.则求全组合 C(n,m)=n!/(m!*(n-m)!) http://acm.hdu.edu.cn/showproblem.php? pid=1570 AC代码: #include<iostream> using namespace std; long long f(int n){ long long s=1; if(n==0) return s; for(int i=1;i<=n;i+…