haccepted-0.1.0.0: Data structures and algorithms
Safe HaskellNone
LanguageHaskell2010

Scanner

Description

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

Documentation

runS :: S a -> IO a Source #

Runs the given action with standard input.

charS :: S Char Source #

Reads a Char.

byteStrS :: S ByteString Source #

Reads a ByteString.

intS :: S Int Source #

Reads an Int.

ioArrS :: (MArray a e IO, Ix i) => (i, i) -> S e -> S (a i e) Source #

Reads an array mutable in IO.

arrS :: forall a a' e i. (MArray a e IO, IArray a' e, Ix i) => (i, i) -> S e -> S (a' i e) Source #

Reads an array.

uArrayS :: (MArray IOUArray e IO, IArray UArray e, Ix i) => (i, i) -> S e -> S (UArray i e) Source #

Reads a UArray.

arrayS :: Ix i => (i, i) -> S e -> S (Array i e) Source #

Reads an Array.

graphS :: Bounds -> Int -> S Graph Source #

Reads an undirected graph from an edge list.

graphDirS :: Bounds -> Int -> S Graph Source #

Reads a directed graph from an edge list.