Result

AC

Duration

507ms

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[q=++t%3]-a[q+3]*a[p-3])/6]
}
echo $s

stdin

19 25 72
63 23 12
85 35 63
63 04 72

stdout

17006

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: 4620: command not found
/volume/CODE: line 3: 18260: command not found
/volume/CODE: line 3: 17006: command not found

strace