Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lone_sum :: Int -> Int -> Int -> Int
- lone_sum x y z = if x == y && x == z then 0 else if x == y || x == z then total - x - x else if y == z then total - y - y else total
- where
- total = x + y + z
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement