HDU 2049 不容易系列之(4)——考新郎
摘要:
#include<stdio.h>long long num[25],N[25];int main( ){ num[1] = 0; num[2] = 1; N[1] = 1; N[2] = 2; N[0] = 1; for( int i = 3; i < 25; ++i ) num[i] = ( num[i-1] + num[i-2] )*( i - 1 ),N[i] = i * N[i-1]; int t,n,m; scanf( "%d",&t ); while( t-- ) { scanf( "%d%d",&n,&a 阅读全文
posted @ 2011-05-06 22:40 LeeBlog 阅读(316) 评论(0) 推荐(0) 编辑