by@hakatashi
AC
516ms
n/{' '/{{48-}%10base}%}%);zip{([.;]3*[\]zip{~\-}%}%[]*~8$5$*1$*8$5$*4$*+7$7$*3$*+9$5$*3$*- 8$7$*2$*- 7$6$*4$*-{\;}9*6/
55 63 95 30 48 73 10 60 17 72 14 08
19668