Created
April 15, 2019 09:39
-
-
Save whatalnk/7ab8a402c568a90d5d5ebe9fc7f79cd5 to your computer and use it in GitHub Desktop.
AtCoder ABC #122 A - Double Helix
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
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