by@satos___jp
AC
502ms
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);}
26 96 22 35 63 02 75 89 93 14 48 67
29573
/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:114: 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:114: warning: incompatible implicit declaration of built-in function 'printf' /tmp/code.c:1:114: note: include '<stdio.h>' or provide a declaration of 'printf'