Result

AC

Duration

538ms

Code [DL]

int i,j,a[12];main(){for(i=0;i<12;i++){scanf("%d", &a[i]);a[i]-=a[i%3]*(i>2);}printf("%d\n",(a[3]*a[7]*a[11]+a[4]*a[8]*a[9]+a[5]*a[10]*a[6]-a[5]*a[7]*a[9]-a[8]*a[10]*a[3]-a[4]*a[11]*a[6])/6);}

stdin

22 15 88
66 66 95
04 09 10
47 87 75

stdout

21855

stderr

/tmp/code.c:1:15: warning: return type defaults to 'int' [-Wimplicit-int]
 int i,j,a[12];main(){for(i=0;i<12;i++){scanf("%d", &a[i]);a[i]-=a[i%3]*(i>2);}printf("%d\n",(a[3]*a[7]*a[11]+a[4]*a[8]*a[9]+a[5]*a[10]*a[6]-a[5]*a[7]*a[9]-a[8]*a[10]*a[3]-a[4]*a[11]*a[6])/6);}
               ^~~~
/tmp/code.c: In function 'main':
/tmp/code.c:1:40: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
 int i,j,a[12];main(){for(i=0;i<12;i++){scanf("%d", &a[i]);a[i]-=a[i%3]*(i>2);}printf("%d\n",(a[3]*a[7]*a[11]+a[4]*a[8]*a[9]+a[5]*a[10]*a[6]-a[5]*a[7]*a[9]-a[8]*a[10]*a[3]-a[4]*a[11]*a[6])/6);}
                                        ^~~~~
/tmp/code.c:1:40: warning: incompatible implicit declaration of built-in function 'scanf'
/tmp/code.c:1:40: note: include '<stdio.h>' or provide a declaration of 'scanf'
/tmp/code.c:1:79: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
 int i,j,a[12];main(){for(i=0;i<12;i++){scanf("%d", &a[i]);a[i]-=a[i%3]*(i>2);}printf("%d\n",(a[3]*a[7]*a[11]+a[4]*a[8]*a[9]+a[5]*a[10]*a[6]-a[5]*a[7]*a[9]-a[8]*a[10]*a[3]-a[4]*a[11]*a[6])/6);}
                                                                               ^~~~~~
/tmp/code.c:1:79: warning: incompatible implicit declaration of built-in function 'printf'
/tmp/code.c:1:79: note: include '<stdio.h>' or provide a declaration of 'printf'

strace