Skip to content

Instantly share code, notes, and snippets.

@whatalnk
Created April 14, 2019 03:03
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 whatalnk/2d291d3162f497213cc739ab2fc1df62 to your computer and use it in GitHub Desktop.
Save whatalnk/2d291d3162f497213cc739ab2fc1df62 to your computer and use it in GitHub Desktop.
AtCoder ABC #124 A - Buttons
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