The scoring is based on upvotes from other users. This often does translate to the "top answers" being dubious one-liners.
To start upvotes from the community was the best way to do it - though soon enough we'll be benchmarking solutions so you can order them by execution time.