پاسخ : نوشتن دوز چهارتایی
#include <iostream>
using namespace std;
const int m=10, n=10, max_lev=5, INF=(1<<24);
struct STATE {
int s[m][n], num[n];
STATE() {
for (int i=0;i<m;i++)
for (int j=0;j<n;j++)
s[i][j]=-1;
for (int j=0;j<n;j++)
num[j]=0;
}
bool add(const bool...