Result

AC

Duration

483ms

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

13 65 54
72 92 95
47 44 84
14 77 03

stdout

17861

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: 10279: command not found
/volume/CODE: line 3: 27054: command not found
/volume/CODE: line 3: 17861: command not found

strace