摘要: View Code 1 #include 2 using namespace std; 3 int a[11]={0,1,0,0,2,10,4,40,92,352,724}; 4 int main() 5 { 6 int n; 7 while(scanf("%d",&n)>0&&n) 8 { 9 printf("%d\n",a[n]);10 }11 return 0;12 }思路:由于题目数据量小,只有10个数据,可以用深搜搜索出来后,打表。深搜代码:View Code 1 #include 2 #include 3 usi 阅读全文
posted @ 2013-03-04 10:30 紫忆 阅读(266) 评论(0) 推荐(0) 编辑