Result

AC

Duration

512ms

Code [DL]

ssss["x:map(int,x.split())"mT"]_@;@_@;-@-@-[":_____0&u"]@[":1&u"]u[":2&u0&u"]u[":1&u"]@[":2&[T"]**@**-":]++6/F

stdin

20 46 66
81 69 04
91 10 55
34 46 22

stdout

22281

stderr

strace