문제2686--Quick Brown Fox

2686: Quick Brown Fox

실행시간 제한: 1 Sec  메모리사용 제한: 128 MB
제출: 2  통과: 1
[제출] [채점기록] [묻고답하기]

문제 설명

A pangram is a phrase that includes at least one occurrence of each of the 26 letters, ‘a’. . .‘z’. You’re probably familiar with this one: “The quick brown fox jumps over the lazy dog.”

Your job is to recognize pangrams. For phrases that don’t contain every letter, report what letters are missing. We’ll say that a particular letter occurs in the phrase if it occurs as either upper case or lower case.

입력 설명

Input starts with a line containing an integer 1 ≤ N ≤ 50. The next N lines are each a single phrase, possibly containing upper and lower case letters, spaces, decimal digits and punctuation characters ‘.’, ‘,’, ‘?’, ‘!’, ‘’’ and ‘"’. Each phrase contains at least one and no more than 100 characters.

출력 설명

For each input phrase, output “pangram” if it qualifies as a pangram. Otherwise, output the word “missing” followed by a space and then the list of letters that didn’t occur in the phrase. The list of missing letters should be reported in lower case and should be sorted alphabetically.

입력 예시 Copy

3
The quick brown fox jumps over the lazy dog.
ZYXW, vu TSR Ponm lkj ihgfd CBA.
.,?!’" 92384 abcde FGHIJ

출력 예시 Copy

pangram
missing eq
missing klmnopqrstuvwxyz

출처/분류