You are viewing a single comment's thread. Return to all comments →
Haskell
module Main where import Control.Monad (replicateM_) main :: IO () main = do cases <- readLn :: IO Int replicateM_ cases $ do n <- readLn :: IO Integer let (q, r) = n `quotRem` 2 print $ q * (q + r)
Seems like cookies are disabled on this browser, please enable them to open this website
Halloween party
You are viewing a single comment's thread. Return to all comments →
Haskell