5
haskell/p1.hs
Normal file
5
haskell/p1.hs
Normal file
@@ -0,0 +1,5 @@
|
||||
main :: IO ()
|
||||
main = putStr $ show solve
|
||||
|
||||
solve :: Integer
|
||||
solve = sum [ x | x <- [0..999], mod x 3 == 0 || mod x 5 == 0 ]
|
Reference in New Issue
Block a user