28 for (r
=i
=0; i
<Q
; i
++) {
31 if (x
+i
< Q
& y
+i
< Q
)
33 if (x
+i
< Q
& y
-i
>= 0)
35 if (x
-i
>= 0 & y
+i
< Q
)
37 if (x
-i
>= 0 & y
-i
>= 0)
59 main(int ac
, void **av
) {
65 t
= calloc(Q
, sizeof(int *));
67 t
[i
] = calloc(Q
, sizeof(int));
69 printf("found %d solutions\n", N
);