Result

AC

Duration

539ms

Code [DL]

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

stdin

18 63 23
38 79 03
44 21 99
32 06 03

stdout

24444

stderr

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

strace