by@yamayu832
AC
483ms
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 $s13 65 54 72 92 95 47 44 84 14 77 03
17861
/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