Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def is_money_bags(year)
- first = Time.utc(year, 10, 1)
- last = Time.utc(year, 10, 31)
- first.monday? and last.wednesday?
- end
- year = 2013
- solutions = []
- until solutions.length == 10
- solutions.push year if is_money_bags year
- year += 1
- end
- puts solutions
Add Comment
Please, Sign In to add comment