Result

WA

Duration

520ms

Code [DL]

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

58 42 02
87 34 57
22 56 72
32 33 33

stdout

12386

stderr

0+1 records in
0+1 records out
36 bytes copied, 6.0226e-05 s, 598 kB/s
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: 411: command not found
bash: line 2: 9338: command not found
bash: line 2: 12386: command not found

strace