Result

WA

Duration

466ms

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

12 02 58
36 81 77
57 50 35
18 35 01

stdout

12751

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: 17257: command not found
/volume/CODE: line 3: 16117: command not found
/volume/CODE: line 3: 12751: command not found