题目链接:
http://poj.org/problem?id=1416
题意:
http://blog.csdn.net/lyy289065406/article/details/6647969
里面也有题解。。。然而直接dfs暴搜即可。
代码
#include<iostream>
#include<algorithm>
#include<stdio.h>
#include<string.h>
using namespace std;
int ans,n,m,len,flag,num;
int wsf[10],b[10];