Result

WA

Duration

467ms

Code [DL]

a=(`cat`)
for((;z<9;)){
$[a[t=z]-=a[9+t%3],s+=t/6*a[z++]*(a[p=++t%3+3]*a[++t%3]-a[t%3]*a[p-3])/6]
}
echo $s

stdin

90 52 25
07 39 11
90 40 49
06 57 87

stdout

11988

stderr

/volume/CODE: line 3: 0: command not found
/volume/CODE: line 3: 0: command not found
/volume/CODE: line 3: 0: command not found
/volume/CODE: line 3: 0: command not found
/volume/CODE: line 3: 0: command not found
/volume/CODE: line 3: 0: command not found
/volume/CODE: line 3: 11284: command not found
/volume/CODE: line 3: 14616: command not found
/volume/CODE: line 3: 11988: command not found

strace