13 for (r
=i
=0; i
<8; i
++) {
16 if (x
+i
< 8 & y
+i
< 8)
17 r
= r
+ t
[x
+i
+ 8*(y
+i
)];
18 if (x
+i
< 8 & y
-i
>= 0)
19 r
= r
+ t
[x
+i
+ 8*(y
-i
)];
20 if (x
-i
>= 0 & y
+i
< 8)
21 r
= r
+ t
[x
-i
+ 8*(y
+i
)];
22 if (x
-i
>= 0 & y
-i
>= 0)
23 r
= r
+ t
[x
-i
+ 8*(y
-i
)];
29 go(int n
, int x
, int y
)
49 t
= calloc(64, sizeof(int));