【題解】洛谷P1092[NOIP2004]蟲食算 dfs

題目鏈接 參考了大佬題解中的剪枝操作 #include<cstdio> #include<map> #include<cstdlib> using namespace std; int n,vis[27]; char s[4][27]; map<char,int>mp; void dfs(int x,int y,int jw)//x列y行進位爲jw { if(x==0)//豎式最左 {
相關文章
相關標籤/搜索