시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
2 초 256 MB 567 391 359 73.717%

문제

팬그램은 26개의 알파벳, a~z를 최소 한번씩 모두 사용한 문장을 말한다. 아마 가장 유명한 문장은 이것일 것이다. "The quick brown fox jumps over the lazy dog."

꿍은 다른 문장들중에 팬그램인 것은 없는지 궁금해졌다. 그래서 여러분이 할 일은 꿍을 위해 어떠한 문장이 팬그램인지 아닌지를 판별해주는 프로그램을 짜는 것이다.

팬그램에서는 알파벳의 대소문자를 구분하지 않는다고 하자.

입력

입력의 첫 번째 줄은 1 ≤ N ≤ 50의 N이 주어진다.

다음 N개의 줄은 각각 한 문장이 주어지는데, 알파벳의 대소문자, 공백, 숫자, 그리고 분장부호들(. , ? ! ' ")이 포함될 수 있다.

각 문장은 최소 한개의 문자를 포함하며 100개를 넘지는 않는다.

출력

각 입력에 대해, 팬그램에 해당하면 "pangram"을 출력한다.

만약 팬그램이 아닐 경우, "missing"을 출력한 후 한칸 띄고 문장에 나타나지 않은 문자들을 모두 출력한다. 이때, 나타나지 않은 문자들은 모두 소문자로 출력하며 알파벳 순서대로 정렬된상태로 출력해야 한다.

예제 입력 1

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

예제 출력 1

pangram
missing eq
missing klmnopqrstuvwxyz
W3sicHJvYmxlbV9pZCI6IjExMDkxIiwicHJvYmxlbV9sYW5nIjoiMCIsInRpdGxlIjoiXHVjNTRjXHVkMzBjXHViY2IzIFx1YzgwNFx1YmQ4MCBcdWM0ZjBcdWFlMzAiLCJkZXNjcmlwdGlvbiI6IjxwPlx1ZDMyY1x1YWRmOFx1YjdhOFx1Yzc0MCAyNlx1YWMxY1x1Yzc1OCBcdWM1NGNcdWQzMGNcdWJjYjMsIGF+elx1Yjk3YyBcdWNkNWNcdWMxOGMgXHVkNTVjXHViYzg4XHVjNTI5IFx1YmFhOFx1YjQ1MCBcdWMwYWNcdWM2YTlcd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hdCBsZWFzdCBvbmUgYW5kIG5vIG1vcmUgdGhhbiAxMDAgY2hhcmFjdGVycy48XC9wPlxyXG4iLCJvdXRwdXQiOiI8cD5Gb3IgZWFjaCBpbnB1dCBwaHJhc2UsIG91dHB1dCAmbGRxdW87cGFuZ3JhbSZyZHF1bzsgaWYgaXQgcXVhbGlmaWVzIGFzIGEgcGFuZ3JhbS4gT3RoZXJ3aXNlLCBvdXRwdXQgdGhlIHdvcmQgJmxkcXVvO21pc3NpbmcmcmRxdW87IGZvbGxvd2VkIGJ5IGEgc3BhY2UgYW5kIHRoZW4gdGhlIGxpc3Qgb2YgbGV0dGVycyB0aGF0IGRpZG4mcnNxdW87dCBvY2N1ciBpbiB0aGUgcGhyYXNlLiBUaGUgbGlzdCBvZiBtaXNzaW5nIGxldHRlcnMgc2hvdWxkIGJlIHJlcG9ydGVkIGluIGxvd2VyIGNhc2UgYW5kIHNob3VsZCBiZSBzb3J0ZWQgYWxwaGFiZXRpY2FsbHkuPFwvcD5cclxuIiwiaGludCI6IiIsIm9yaWdpbmFsIjoiMSIsInByb2JsZW1fbGFuZ19jb2RlIjoiXHVjNjAxXHVjNWI0In1d

출처

ACM-ICPC > Regionals > North America > North America Qualification Contest > ACM-ICPC North America Qualifier 2015 F번

  • 잘못된 데이터를 찾은 사람: ksh021144
  • 문제를 번역한 사람: seok9311