This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module MyStringThing | |
refine String do | |
def at(num) | |
self[num..num] | |
end | |
end | |
end | |
class A |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main :: IO () | |
main = do | |
str <- getLine | |
let [a,b] = words str | |
return ((read a :: Int) + (read b :: Int)) |
NewerOlder