CF 520A - Pangram
A word or a sentence in some language is called a pangram if all the characters of the alphabet of this language appear in it at least once. Pangrams are often used to demonstrate fonts in printing or test the output devices.
You are given a string consisting of lowercase and uppercase Latin letters. Check whether this string is a pangram. We say that the string contains a letter of the Latin alphabet if this letter occurs in the string in uppercase or lowercase.
Input
The first line contains a single integer n (1 ≤ n ≤ 100) — the number of characters in the string.
The second line contains the string. The string consists only of uppercase and lowercase Latin letters.
Output
Output "YES", if the string is a pangram and "NO" otherwise.
--------------------------------------------------------------------
某种语言中的一个单词或一个句子,如果该语言字母表中的所有字符至少出现一次,则称为全语法。 Pangrams 通常用于演示打印中的字体或测试输出设备。
给您一个由小写和大写拉丁字母组成的字符串。 检查这个字符串是否是一个全语法。 如果该字母以大写或小写形式出现在字符串中,我们就说该字符串包含拉丁字母表中的字母。
输入
第一行包含一个整数 n (1 ≤ n ≤ 100) — 字符串中的字符数。
第二行包含字符串。 该字符串仅由大写和小写拉丁字母组成。
输出
如果字符串是全语法,则输出“YES”,否则输出“NO”。
-----------------------------------------------------------
简单题目,直接遍历,确认有26个字母即可;
下面是代码: