Result

AC

Duration

502ms

Code [DL]

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

stdin

51 46 35
63 35 05
93 47 35
16 04 69

stdout

11331

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: 20969: command not found
/volume/CODE: line 3: 16368: command not found
/volume/CODE: line 3: 11331: command not found

strace