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]*a[(i/6+1&2)*3+(i+3)/2%3+3]^-i%2;printf("%d",s/6-3);}

stdin

56 38 03
82 77 10
12 05 85
72 11 25

stdout

23270

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]*a[(i/6+1&2)*3+(i+3)/2%3+3]^-i%2;printf("%d",s/6-3);}
 ^
/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]*a[(i/6+1&2)*3+(i+3)/2%3+3]^-i%2;printf("%d",s/6-3);}
      ^
/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]*a[(i/6+1&2)*3+(i+3)/2%3+3]^-i%2;printf("%d",s/6-3);}
           ^~~~
/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]*a[(i/6+1&2)*3+(i+3)/2%3+3]^-i%2;printf("%d",s/6-3);}
                            ^~~~~
/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:79: 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]*a[(i/6+1&2)*3+(i+3)/2%3+3]^-i%2;printf("%d",s/6-3);}
                                                                            ~~~^~
/tmp/code.c:1:105: 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]*a[(i/6+1&2)*3+(i+3)/2%3+3]^-i%2;printf("%d",s/6-3);}
                                                                                                         ^~~~~~
/tmp/code.c:1:105: warning: incompatible implicit declaration of built-in function 'printf'
/tmp/code.c:1:105: note: include '<stdio.h>' or provide a declaration of 'printf'

strace