Result

AC

Duration

527ms

Code [DL]

i,a[8];main(s){for(i=36;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

76 75 93
82 73 99
13 07 78
99 17 53

stdout

8023

stderr

/tmp/code.c:1:1: warning: data definition has no type or storage class
 i,a[8];main(s){for(i=36;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:3: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
 i,a[8];main(s){for(i=36;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:8: warning: return type defaults to 'int' [-Wimplicit-int]
 i,a[8];main(s){for(i=36;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:8: warning: type of 's' defaults to 'int' [-Wimplicit-int]
/tmp/code.c:1:29: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
 i,a[8];main(s){for(i=36;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:29: warning: incompatible implicit declaration of built-in function 'scanf'
/tmp/code.c:1:29: note: include '<stdio.h>' or provide a declaration of 'scanf'
/tmp/code.c:1:90: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses]
 i,a[8];main(s){for(i=36;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:111: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
 i,a[8];main(s){for(i=36;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:111: warning: incompatible implicit declaration of built-in function 'printf'
/tmp/code.c:1:111: note: include '<stdio.h>' or provide a declaration of 'printf'