Created
April 12, 2016 22:35
-
-
Save chuck0523/bedb867b6b3d8b6e9d6b777248c53a86 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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