传送门
纯搜索,无优化!
#include <cstdio> #include <cstring> #include <iostream> #include <algorithm> #define N 10 using namespace std; int n, m, f; int c[300], b[N]; string map[N][N]; bool check() return 1; } inline void dfs(int k) } for(int i = 0; i < m; i++) if(!b[i]) } int main() cout << "ERROR!\n"; return 0; }
上一篇:[luoguP1097] 统计数字(水)
下一篇:[luoguP1136] 迎接仪式(DP)
dfs









