fork download
  1. import System.IO
  2. quicksort [] = []
  3. quicksort (x:xs) = quicksort [y | y <- xs, y < x] ++ [x] ++ quicksort [y | y <- xs, y >= x]
  4. main = print . quicksort =<< getLine
Runtime error #stdin #stdout 0.01s 3600KB
stdin
Standard input is empty
stdout
Standard output is empty