This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE BangPatterns #-} | |
import Control.Applicative | |
import Prelude hiding (minimum, sum) | |
import Data.List (permutations) | |
import Control.Monad.ST | |
import Data.Bifunctor (second) | |
import Data.Vector.Unboxed (Vector) | |
import qualified Data.Vector.Unboxed as U | |
import Data.Vector.Unboxed.Mutable (STVector) | |
import qualified Data.Vector.Unboxed.Mutable as UM |