Skip to main content
shorten along the lines of Omar's comment
Source Link
J B
  • 10k
  • 27
  • 60

Haskell, 0 +/-, 66 2 tie-breakers (1 =, 5 .)

(does not use the string/list concatenation trick)

main=interact$show.main = interact f
f x = show $ log. $ product. $ map exp. $ map read. $ lines x

Haskell, 0 +/-, 6 tie-breakers (1 =, 5 .)

(does not use the string concatenation trick)

main=interact$show.log.product.map exp.map read.lines

Haskell, 0 +/-, 6 2 tie-breakers (=)

(does not use the string/list concatenation trick)

main = interact f
f x = show $ log $ product $ map exp $ map read $ lines x
Source Link
J B
  • 10k
  • 27
  • 60

Haskell, 0 +/-, 6 tie-breakers (1 =, 5 .)

(does not use the string concatenation trick)

main=interact$show.log.product.map exp.map read.lines