Result

AC

Duration

511ms

Code [DL]

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

stdin

81 02 07
19 28 34
60 92 44
56 60 13

stdout

17777

stderr

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

strace