#include<bits/stdc++.h> #define N 9 using namespace std; bool row[N][N],col[N][N],block[N][N]; int a[N][N]; bool flag=false; void init() { memset(row,0,sizeof row); memset(col,0,sizeof col); memset(block,0,sizeof block); flag=false; } int getBlock(int x,int y) { return (...