Created
March 15, 2018 13:23
-
-
Save whatalnk/728b67c95d4499018ff8a4991704181e to your computer and use it in GitHub Desktop.
第4回 ドワンゴからの挑戦状 予選: A
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
# https://beta.atcoder.jp/contests/dwacon2018-prelims/tasks/dwacon2018_prelims_a | |
s = gets.chomp | |
if s[0] == s[2] && s[1] == s[3] then | |
puts "Yes" | |
else | |
puts "No" | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment