Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
a, b = [gets, gets].map(&:to_i)
puts a - b > 6 ? (a - (b + 12)).abs : (a - b).abs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment