Skip to content

Instantly share code, notes, and snippets.

@ninoseki
Last active August 29, 2015 14:16
Show Gist options
  • Save ninoseki/994de91994a6212089fc to your computer and use it in GitHub Desktop.
Save ninoseki/994de91994a6212089fc to your computer and use it in GitHub Desktop.
Codeforces#295 Div2-A
# http://codeforces.com/contest/520/problem/A
class Pangram
def initialize(s)
@chars = s.downcase.chars
end
def is_pangram?
@chars.uniq.length >= ('a'..'z').to_a.length
end
def self.is_pangram?(chars)
new(chars).is_pangram?
end
end
n = gets.chomp
s = gets.chomp
puts Pangram.is_pangram?(s) ? 'YES' : 'NO'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment