by@kcz146
WA
505ms
a=(`cat`) for z in {0..8};{ $[a[t=z]-=a[9+z%3],s+=z/6*a[z]*(a[p=3+++t%3]*a[q=++t%3]-a[q+3]*a[p-3])/6] } echo $s
22 55 09 19 13 06 93 53 27 36 71 78
/volume/CODE: line 3: 09: value too great for base (error token is "09")