Skip to content

Instantly share code, notes, and snippets.

@whatalnk
Created March 15, 2018 13:23
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/728b67c95d4499018ff8a4991704181e to your computer and use it in GitHub Desktop.
Save whatalnk/728b67c95d4499018ff8a4991704181e to your computer and use it in GitHub Desktop.
第4回 ドワンゴからの挑戦状 予選: A
# 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