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.
--------------------------------------------------------------------
某種語言中的一個(gè)單詞或一個(gè)句子,如果該語言字母表中的所有字符至少出現(xiàn)一次,則稱為全語法。 Pangrams 通常用于演示打印中的字體或測試輸出設(shè)備。
給您一個(gè)由小寫和大寫拉丁字母組成的字符串。 檢查這個(gè)字符串是否是一個(gè)全語法。 如果該字母以大寫或小寫形式出現(xiàn)在字符串中,我們就說該字符串包含拉丁字母表中的字母。
輸入
第一行包含一個(gè)整數(shù) n (1?≤?n?≤?100) — 字符串中的字符數(shù)。
第二行包含字符串。 該字符串僅由大寫和小寫拉丁字母組成。
輸出
如果字符串是全語法,則輸出“YES”,否則輸出“NO”。
-----------------------------------------------------------
簡單題目,直接遍歷,確認(rèn)有26個(gè)字母即可;
下面是代碼: