Result

AC

Duration

548ms

Code [DL]

i,j,a[8];main(s){for(i=36;i--;scanf("%d",a+j++))s-=a[i/2]*a[(i+3)/2%3+3+(i/6+1&2)*3]*a[8-i/12*6-i%3]*(1-i%2*2);printf("%d",s/6);}

stdin

02 09 65
94 79 92
82 63 11
03 27 74

stdout

19563

stderr

/tmp/code.c:1:1: warning: data definition has no type or storage class
 i,j,a[8];main(s){for(i=36;i--;scanf("%d",a+j++))s-=a[i/2]*a[(i+3)/2%3+3+(i/6+1&2)*3]*a[8-i/12*6-i%3]*(1-i%2*2);printf("%d",s/6);}
 ^
/tmp/code.c:1:1: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
/tmp/code.c:1:3: warning: type defaults to 'int' in declaration of 'j' [-Wimplicit-int]
 i,j,a[8];main(s){for(i=36;i--;scanf("%d",a+j++))s-=a[i/2]*a[(i+3)/2%3+3+(i/6+1&2)*3]*a[8-i/12*6-i%3]*(1-i%2*2);printf("%d",s/6);}
   ^
/tmp/code.c:1:5: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
 i,j,a[8];main(s){for(i=36;i--;scanf("%d",a+j++))s-=a[i/2]*a[(i+3)/2%3+3+(i/6+1&2)*3]*a[8-i/12*6-i%3]*(1-i%2*2);printf("%d",s/6);}
     ^
/tmp/code.c:1:10: warning: return type defaults to 'int' [-Wimplicit-int]
 i,j,a[8];main(s){for(i=36;i--;scanf("%d",a+j++))s-=a[i/2]*a[(i+3)/2%3+3+(i/6+1&2)*3]*a[8-i/12*6-i%3]*(1-i%2*2);printf("%d",s/6);}
          ^~~~
/tmp/code.c: In function 'main':
/tmp/code.c:1:10: warning: type of 's' defaults to 'int' [-Wimplicit-int]
/tmp/code.c:1:31: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
 i,j,a[8];main(s){for(i=36;i--;scanf("%d",a+j++))s-=a[i/2]*a[(i+3)/2%3+3+(i/6+1&2)*3]*a[8-i/12*6-i%3]*(1-i%2*2);printf("%d",s/6);}
                               ^~~~~
/tmp/code.c:1:31: warning: incompatible implicit declaration of built-in function 'scanf'
/tmp/code.c:1:31: note: include '<stdio.h>' or provide a declaration of 'scanf'
/tmp/code.c:1:77: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses]
 i,j,a[8];main(s){for(i=36;i--;scanf("%d",a+j++))s-=a[i/2]*a[(i+3)/2%3+3+(i/6+1&2)*3]*a[8-i/12*6-i%3]*(1-i%2*2);printf("%d",s/6);}
                                                                          ~~~^~
/tmp/code.c:1:112: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
 i,j,a[8];main(s){for(i=36;i--;scanf("%d",a+j++))s-=a[i/2]*a[(i+3)/2%3+3+(i/6+1&2)*3]*a[8-i/12*6-i%3]*(1-i%2*2);printf("%d",s/6);}
                                                                                                                ^~~~~~
/tmp/code.c:1:112: warning: incompatible implicit declaration of built-in function 'printf'
/tmp/code.c:1:112: note: include '<stdio.h>' or provide a declaration of 'printf'