Result

AC

Duration

547ms

Code [DL]

#define Z(a,b,c) int a,b,c;scanf("%d%d%d",&a,&b,&c);a-=j;b-=k;c-=l;
j,k,l;main(){scanf("%d%d%d",&j,&k,&l);Z(a,b,c)Z(d,e,f)Z(g,h,i)printf("%d",(a*e*i+b*f*g+c*d*h-a*h*f-b*i*d-c*g*e)/6);}

stdin

18 30 17
71 06 21
97 53 22
88 05 76

stdout

27945

stderr

/tmp/code.c:2:1: warning: data definition has no type or storage class
 j,k,l;main(){scanf("%d%d%d",&j,&k,&l);Z(a,b,c)Z(d,e,f)Z(g,h,i)printf("%d",(a*e*i+b*f*g+c*d*h-a*h*f-b*i*d-c*g*e)/6);}
 ^
/tmp/code.c:2:1: warning: type defaults to 'int' in declaration of 'j' [-Wimplicit-int]
/tmp/code.c:2:3: warning: type defaults to 'int' in declaration of 'k' [-Wimplicit-int]
 j,k,l;main(){scanf("%d%d%d",&j,&k,&l);Z(a,b,c)Z(d,e,f)Z(g,h,i)printf("%d",(a*e*i+b*f*g+c*d*h-a*h*f-b*i*d-c*g*e)/6);}
   ^
/tmp/code.c:2:5: warning: type defaults to 'int' in declaration of 'l' [-Wimplicit-int]
 j,k,l;main(){scanf("%d%d%d",&j,&k,&l);Z(a,b,c)Z(d,e,f)Z(g,h,i)printf("%d",(a*e*i+b*f*g+c*d*h-a*h*f-b*i*d-c*g*e)/6);}
     ^
/tmp/code.c:2:7: warning: return type defaults to 'int' [-Wimplicit-int]
 j,k,l;main(){scanf("%d%d%d",&j,&k,&l);Z(a,b,c)Z(d,e,f)Z(g,h,i)printf("%d",(a*e*i+b*f*g+c*d*h-a*h*f-b*i*d-c*g*e)/6);}
       ^~~~
/tmp/code.c: In function 'main':
/tmp/code.c:2:14: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
 j,k,l;main(){scanf("%d%d%d",&j,&k,&l);Z(a,b,c)Z(d,e,f)Z(g,h,i)printf("%d",(a*e*i+b*f*g+c*d*h-a*h*f-b*i*d-c*g*e)/6);}
              ^~~~~
/tmp/code.c:2:14: warning: incompatible implicit declaration of built-in function 'scanf'
/tmp/code.c:2:14: note: include '<stdio.h>' or provide a declaration of 'scanf'
/tmp/code.c:2:63: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
 j,k,l;main(){scanf("%d%d%d",&j,&k,&l);Z(a,b,c)Z(d,e,f)Z(g,h,i)printf("%d",(a*e*i+b*f*g+c*d*h-a*h*f-b*i*d-c*g*e)/6);}
                                                               ^~~~~~
/tmp/code.c:2:63: warning: incompatible implicit declaration of built-in function 'printf'
/tmp/code.c:2:63: note: include '<stdio.h>' or provide a declaration of 'printf'

strace