Skip to content

Instantly share code, notes, and snippets.

@whatalnk
Created April 15, 2019 09:39
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/7ab8a402c568a90d5d5ebe9fc7f79cd5 to your computer and use it in GitHub Desktop.
Save whatalnk/7ab8a402c568a90d5d5ebe9fc7f79cd5 to your computer and use it in GitHub Desktop.
AtCoder ABC #122 A - Double Helix
b = gets.chomp
base = {
"A" => "T",
"T" => "A",
"G" => "C",
"C" => "G"
}
puts base[b]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment