import choco.Problem; import choco.integer.*; import choco.Solver; import choco.Solution; import choco.search.*; public class OldMagic { public static void main(String[] args) throws Exception { int n = Integer.parseInt(args[0]); int k = n*(n*n + 1)/2; // what a row/col/diag sums to int q = 0; Problem pb = new Problem(); IntDomainVar S[][] = new IntDomainVar[n][n]; // the square IntDomainVar T[][] = new IntDomainVar[n][n]; // transpose of S IntDomainVar v[] = new IntDomainVar[n*n]; // to be allDiff IntDomainVar temp[] = new IntDomainVar[n]; for (int i=0;i