Safe Haskell | None |
---|---|
Language | Haskell2010 |
Fast input
Reads space separated values from ASCII input, the typical format in competitive programming. This is overkill in most situations. For more information see https:/github.commeooow25hacceptedwiki/Performance-tips#input-and-output.
Synopsis
- type S = StateT ByteString IO
- runS :: S a -> IO a
- charS :: S Char
- byteStrS :: S ByteString
- intS :: S Int
- ioArrS :: (MArray a e IO, Ix i) => (i, i) -> S e -> S (a i e)
- arrS :: forall a a' e i. (MArray a e IO, IArray a' e, Ix i) => (i, i) -> S e -> S (a' i e)
- uArrayS :: (MArray IOUArray e IO, IArray UArray e, Ix i) => (i, i) -> S e -> S (UArray i e)
- arrayS :: Ix i => (i, i) -> S e -> S (Array i e)
- graphS :: Bounds -> Int -> S Graph
- graphDirS :: Bounds -> Int -> S Graph