hdu 3419 The Three Groups
摘要:
#include<string.h>#include<stdio.h>#include <iostream>using namespace std;bool vis[15];int a,b,c,s,res,e[15];int data1,data2,data3;//求s个数的全排,并判断是否满足:data1*data2==data3void perm(int k)//k从1开始{ int i; if(k==s+1)//s=a+b+c { data1=data2=data3=0; for(i=1; i<=a; i++) data... 阅读全文
posted @ 2013-06-10 17:43 雨钝风轻 阅读(249) 评论(0) 推荐(0) 编辑