随笔分类 - ACM_母函数
摘要: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(...
阅读全文
摘要: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...
阅读全文

浙公网安备 33010602011771号