摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2082#include#includeint main(){ //freopen("in.txt","r",stdin); int t; scanf("%d",&t); while(t--) { int num; int a[60],b[60]; int i,j,k; memset(a,0,sizeof(a)); memset(b,0,sizeof(b)); a[0]=1; for(... 阅读全文
posted @ 2013-11-25 17:03 清风旋叶 阅读(162) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/status.php?user=l1285556798&pid=1085&status=5#include#include#define maxn 10000int a[maxn],b[maxn];int main(){ int arr[5],brr[5]; int x,y,z; while(scanf("%d%d%d",&x,&y,&z)&&x+y+z) { if(x==0) { printf("1\n"); continue; } brr[1... 阅读全文
posted @ 2013-11-25 17:02 清风旋叶 阅读(121) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1559#include#include#includeusing namespace std;int dp[1005][1005];int main(){ int t; scanf("%d",&t); while(t--) { int m,n,x,y; int i,j; scanf("%d%d%d%d",&m,&n,&x,&y); memset(dp,0,sizeof(dp)); int maxn=-1; ... 阅读全文
posted @ 2013-11-25 16:59 清风旋叶 阅读(85) 评论(0) 推荐(0) 编辑