【洛谷 P1784】 【深搜】 数独
题目
解题思路
深搜
限制条件即当前行当前列当前宫都没有此数字
此题是这题的弱化版
代码
#include<iostream>
#include<cstdio>
using namespace std;
char c;
int p,a[10][10],h[10][10],l[10][10],g[5][5][10];
void dfs(int x,int y)
{
if (p) return;
if (x>9)
{
p=1;