by@kcz146
WA
480ms
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 $s68 32 47 42 02 22 08 66 53 43 47 18
0
/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: 08: value too great for base (error token is "08")