by@kcz146
WA
505ms
print(system2("bash -c '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'"))
35 16 26 34 83 47 48 29 01 04 12 39
7983
bash: line 2: 0: command not found bash: line 2: 0: command not found bash: line 2: 0: command not found bash: line 2: 0: command not found bash: line 2: 0: command not found bash: line 2: 0: command not found bash: line 2: -7003: command not found bash: line 2: -5196: command not found bash: line 2: 7983: command not found