by@kcz146
AC
456ms
a=(`cat`) for z in {0..8};{ $[a[z]-=a[9+z%3],s+=z/6*a[z]*(a[p=3+(z+1)%3]*a[q=(z+2)%3]-a[q+3]*a[p-3])/6] } echo $s
24 58 34 86 18 38 83 30 02 87 85 67
28038
/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: -952: command not found /volume/CODE: line 3: -17397: command not found /volume/CODE: line 3: 28038: command not found