Skip to content

Instantly share code, notes, and snippets.

@whatalnk whatalnk/abc124-a.rb
Created Apr 14, 2019

Embed
What would you like to do?
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
You can’t perform that action at this time.