Skip to content

Instantly share code, notes, and snippets.

@zoranf
Created July 23, 2013 08:37
Show Gist options
  • Save zoranf/6060831 to your computer and use it in GitHub Desktop.
Save zoranf/6060831 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <stdlib.h>
#include <time.h>
using namespace std;
void main() {
int a;
const int b=9;
int sudoku0[b][b];
int aj;
int sudoku[b][b][b+1];
for(int i=1;i<=9;i++) {
for(int j=1;j<=9;j++) {
for(int k=1;k<=10;k++) {
sudoku[i][j][k]=1;
}
}
}
int m=2;
int n=3;
aj=5;
for(int j=1;j<=9;j++) {
sudoku[m][j][aj]=0;
}
for(int i=1;i<=9;i++) {
sudoku[i][n][aj]=0;
}
for (int b=1;b<=6;b+3) {
if (m>=a && m<=a+3 && n<=b && n>=b+3) {
for (int i=1; i<=3; i++) {
for (int j=1; j<=3 ; j++) {
sudoku[i][j][aj]=0;
}
}
}
}
cin.get();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment