Result

AC

Duration

528ms

Code [DL]

i;X[12];main(s){for(;~scanf("%d",X+i);)s-=i/9*(X[i-3]-=X[i])*(X[++i%3]*X[3-~i%3]-X[i%3+3]*X[-~i%3]);printf("%d",s/6);}

stdin

06 85 77
68 57 09
55 80 30
56 54 61

stdout

7461

stderr

/tmp/code.c:1:1: warning: data definition has no type or storage class
 i;X[12];main(s){for(;~scanf("%d",X+i);)s-=i/9*(X[i-3]-=X[i])*(X[++i%3]*X[3-~i%3]-X[i%3+3]*X[-~i%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: data definition has no type or storage class
 i;X[12];main(s){for(;~scanf("%d",X+i);)s-=i/9*(X[i-3]-=X[i])*(X[++i%3]*X[3-~i%3]-X[i%3+3]*X[-~i%3]);printf("%d",s/6);}
   ^
/tmp/code.c:1:3: warning: type defaults to 'int' in declaration of 'X' [-Wimplicit-int]
/tmp/code.c:1:9: warning: return type defaults to 'int' [-Wimplicit-int]
 i;X[12];main(s){for(;~scanf("%d",X+i);)s-=i/9*(X[i-3]-=X[i])*(X[++i%3]*X[3-~i%3]-X[i%3+3]*X[-~i%3]);printf("%d",s/6);}
         ^~~~
/tmp/code.c: In function 'main':
/tmp/code.c:1:9: warning: type of 's' defaults to 'int' [-Wimplicit-int]
/tmp/code.c:1:23: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
 i;X[12];main(s){for(;~scanf("%d",X+i);)s-=i/9*(X[i-3]-=X[i])*(X[++i%3]*X[3-~i%3]-X[i%3+3]*X[-~i%3]);printf("%d",s/6);}
                       ^~~~~
/tmp/code.c:1:23: warning: incompatible implicit declaration of built-in function 'scanf'
/tmp/code.c:1:23: note: include '<stdio.h>' or provide a declaration of 'scanf'
/tmp/code.c:1:65: warning: operation on 'i' may be undefined [-Wsequence-point]
 i;X[12];main(s){for(;~scanf("%d",X+i);)s-=i/9*(X[i-3]-=X[i])*(X[++i%3]*X[3-~i%3]-X[i%3+3]*X[-~i%3]);printf("%d",s/6);}
                                                                 ^~~
/tmp/code.c:1:65: warning: operation on 'i' may be undefined [-Wsequence-point]
/tmp/code.c:1:65: warning: operation on 'i' may be undefined [-Wsequence-point]
/tmp/code.c:1:65: warning: operation on 'i' may be undefined [-Wsequence-point]
/tmp/code.c:1:65: warning: operation on 'i' may be undefined [-Wsequence-point]
/tmp/code.c:1:65: warning: operation on 'i' may be undefined [-Wsequence-point]
/tmp/code.c:1:65: warning: operation on 'i' may be undefined [-Wsequence-point]
/tmp/code.c:1:101: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
 i;X[12];main(s){for(;~scanf("%d",X+i);)s-=i/9*(X[i-3]-=X[i])*(X[++i%3]*X[3-~i%3]-X[i%3+3]*X[-~i%3]);printf("%d",s/6);}
                                                                                                     ^~~~~~
/tmp/code.c:1:101: warning: incompatible implicit declaration of built-in function 'printf'
/tmp/code.c:1:101: note: include '<stdio.h>' or provide a declaration of 'printf'

strace