【题解】洛谷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)//竖式最左 {
相关文章
相关标签/搜索