Project Euler #127: abc-hits

  • + 0 comments

    Well, Haskell's built-in read :: String -> Double is quite slow, so I write my own version of reader. After many times of submission I found that the input format does not follow what it should be:

    The input r is written with at most 6 decimal digits behind the decimal point.

    It confused me for a whole day, and later I just tried to read 8 decimal digits behind the decimal point and that was accepted.