Result

AC

Duration

489ms

Code [DL]

ssss["x:map(int,x.split())"mT"x:[x[3]-e for e in x]"mT]yu]u]u][______________1&u5&u6&*u3&u8&*-*u2&u3&u7&*u4&u6&*-*u0&u4&u8&*u5&u7&*-*++["x:x/6"m]

stdin

03 75 25
03 40 82
14 12 36
15 90 04

stdout

6632

stderr

strace