2015年1月18日
摘要: #include//错排公式f(0)=1;__int64 a[15]={1,0,1,2};int C_n_m(int n,int m){ __int64 u=1,d=1; if(m>n/2)m=n-m; for(int i=0;i<m;++i) { u*=(n-... 阅读全文
posted @ 2015-01-18 18:35 Unc、 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 母函数#include#include#define min(a,b) ((a)<(b)?(a):(b))int N,v[26],n[26],a[55],b[55],i,j,k,last,last2,sum;int main(){ scanf("%d",&N); while(N--... 阅读全文
posted @ 2015-01-18 17:59 Unc、 阅读(250) 评论(0) 推荐(0) 编辑