Result

AC

Duration

513ms

Code [DL]

:let l=[]
:for i in range(4)
for c in split(getline(i+1),'\_s')
call add(l,str2nr(c))
endfor
call setline(i+1,'')
endfor
:for i in range(9)
let l[i+3]-=l[i%3]
endfor
:call setline(1, (l[3]*l[7]*l[11]+l[6]*l[10]*l[5]+l[9]*l[4]*l[8]-l[5]*l[7]*l[9]-l[8]*l[10]*l[3]-l[11]*l[4]*l[6])/6)
ZZ

stdin

06 47 38
91 02 50
03 42 19
26 57 34

stdout

6055



stderr