Result

AC

Duration

506ms

Code [DL]

i,j,a[8];main(s){for(i=36;scanf("%d",a+j++),i--;)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

05 79 19
85 48 06
89 75 33
98 43 79

stdout

28579

stderr

/tmp/code.c:1:1: warning: data definition has no type or storage class
 i,j,a[8];main(s){for(i=36;scanf("%d",a+j++),i--;)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;scanf("%d",a+j++),i--;)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;scanf("%d",a+j++),i--;)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;scanf("%d",a+j++),i--;)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:27: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
 i,j,a[8];main(s){for(i=36;scanf("%d",a+j++),i--;)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:27: warning: incompatible implicit declaration of built-in function 'scanf'
/tmp/code.c:1:27: note: include '<stdio.h>' or provide a declaration of 'scanf'
/tmp/code.c:1:115: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
 i,j,a[8];main(s){for(i=36;scanf("%d",a+j++),i--;)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:115: warning: incompatible implicit declaration of built-in function 'printf'
/tmp/code.c:1:115: note: include '<stdio.h>' or provide a declaration of 'printf'