by@yamayu832
WA
510ms
a=(`cat`) for ((;z++<9));{ $[a[t=z]-=a[9+z%3],s+=z/6*a[z]*(a[p=++t%3+3]*a[q=++t%3]-a[q+3]*a[p-3])/6] } echo $s
94 37 66 52 59 45 93 45 07 58 21 15
/volume/CODE: line 2: syntax error: arithmetic expression required /volume/CODE: line 2: syntax error: `((;z++<9))'