by@kcz146
WA
491ms
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
09 49 94 67 90 24 97 73 02 16 58 53
/volume/CODE: line 3: 09: value too great for base (error token is "09")