摘要: 题解:用a[i]表#include #include using namespace std;struct data{int len,a[2002];}a[35],c,p,t;int n,d;data mul(data a,data b){ memset(c.a,0,sizeof c.a); ... 阅读全文
posted @ 2014-07-21 10:41 forever97 阅读(363) 评论(0) 推荐(0) 编辑
摘要: 题解:如果确定了第一排前两个数,那么剩下的数是唯一确定的,所以只要分情况讨论即可。#include #include int n,a[10010],s[10010];int ans(int x){ memset(a,0,sizeof a); if(x==1)a[1]=1; if(x... 阅读全文
posted @ 2014-07-21 08:46 forever97 阅读(230) 评论(0) 推荐(0) 编辑