Result

AC

Duration

537ms

Code [DL]

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

stdin

08 97 42
68 02 29
80 79 75
90 41 91

stdout

28213

stderr

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