Result

WA

Duration

516ms

Code [DL]

i,a[12];main(){for(;i<12;){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

90 10 03
02 80 23
06 78 39
82 95 85

stdout

26752

stderr

/tmp/code.c:1:1: warning: data definition has no type or storage class
 i,a[12];main(){for(;i<12;){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:1: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
/tmp/code.c:1:3: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
 i,a[12];main(){for(;i<12;){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:9: warning: return type defaults to 'int' [-Wimplicit-int]
 i,a[12];main(){for(;i<12;){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:28: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
 i,a[12];main(){for(;i<12;){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:28: warning: incompatible implicit declaration of built-in function 'scanf'
/tmp/code.c:1:28: note: include '<stdio.h>' or provide a declaration of 'scanf'
/tmp/code.c:1:50: warning: operation on 'i' may be undefined [-Wsequence-point]
 i,a[12];main(){for(;i<12;){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:50: warning: operation on 'i' may be undefined [-Wsequence-point]
/tmp/code.c:1:69: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
 i,a[12];main(){for(;i<12;){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:69: warning: incompatible implicit declaration of built-in function 'printf'
/tmp/code.c:1:69: note: include '<stdio.h>' or provide a declaration of 'printf'

strace