Uiua
This was fun :D
I had a fun experience just throwing the strings with both numbers and spaces at the parse function. In the online pad, everything worked out fine but running the same code on my input locally gave me a "invalid float literal" error.
I thought I'd missed some edge case in the real input again, like is often the case.
Turns out that the Uiua version I used locally had a bug that's fixed in the latest build. For once it wasn't directly my fault ^^
Code
$ 123 328 51 64
$ 45 64 387 23
$ 6 98 215 314
$ * + * +
# &fras "input-6.txt" β
Calc β (
ββββ"+*"/ββ
β‘β⨬(/+|/Γ)
/+
)
Pβ β (
β(ββ‘βΈβ @ )βΈβ @\n
ββ£βββ
β(ββ‘βββ)
Calc
)
Pβ β (
βββΈβ @\n
ββ§»
ββ(Λβ―@ )
β(β(β‘β‘β)ββ(β(β’β£)βββ))Β¬β€β‘ββ
Calc
)
1_2 [βPβPβ]
β‘(&p &pf $"Part _: ")