Skip to content

Instantly share code, notes, and snippets.

@chuck0523
Created April 12, 2016 22:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chuck0523/bedb867b6b3d8b6e9d6b777248c53a86 to your computer and use it in GitHub Desktop.
Save chuck0523/bedb867b6b3d8b6e9d6b777248c53a86 to your computer and use it in GitHub Desktop.
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