Created
April 14, 2019 03:03
-
-
Save whatalnk/2d291d3162f497213cc739ab2fc1df62 to your computer and use it in GitHub Desktop.
AtCoder ABC #124 A - Buttons
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.chomp.split(" ").map(&:to_i) | |
puts [2 * a - 1, 2 * b - 1, a + b].max |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment