You are viewing a single comment's thread. Return to all comments →
Haskell
module Main where import Data.List (cycle) solve :: String -> Int solve = length . filter id . zipWith (/=) (cycle "SOS") main :: IO () main = getLine >>= print . solve
Seems like cookies are disabled on this browser, please enable them to open this website
Mars Exploration
You are viewing a single comment's thread. Return to all comments →
Haskell