Result

AC

Duration

523ms

Code [DL]

print(system2("bash -c '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'"))

stdin

43 91 71
76 02 99
05 63 82
19 17 36

stdout

43498

stderr

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: 12103: command not found
bash: line 2: 8400: command not found
bash: line 2: 43498: command not found

strace