by@kcz146
AC
507ms
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 $s
19 25 72 63 23 12 85 35 63 63 04 72
17006
/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: 4620: command not found /volume/CODE: line 3: 18260: command not found /volume/CODE: line 3: 17006: command not found