Skip to content

Instantly share code, notes, and snippets.

@amutake
Created June 11, 2012 10:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amutake/2909496 to your computer and use it in GitHub Desktop.
Save amutake/2909496 to your computer and use it in GitHub Desktop.
Test
import Control.Applicative
import Control.Monad
import Data.List
main = do
[m, n] <- map read . words <$> getLine
s <- forM [1..m] (\x -> getLine)
putStrLn $ show $ s !! n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment