Last active
August 29, 2015 14:16
-
-
Save ninoseki/994de91994a6212089fc to your computer and use it in GitHub Desktop.
Codeforces#295 Div2-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
# 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