P16335 [HackerRank] Pangrams
普及-
题目描述

A pangram is a string that contains every letter of the alphabet. Given a sentence determine whether it is a pangram in the English alphabet. Ignore case. Return either pangram or not pangram as appropriate.

Example

$s=\text{'The quick brown fox jumps over the lake dog'}$

The string contains all letters in the English alphabet, so return pangram.

Function Description

Complete the function pangrams in the editor below. It should return the string pangram if the input string is a pangram. Otherwise, it should return not pangram.

pangrams has the following parameter(s):

string s: a string to test

Returns

string: either pangram or not pangram

Input Format

A single line with string $s$.

Constraints

$0<\text{length of}s\le10^3$

Each character of $s$, $s[i]\in\{a-z,A-Z,space\}$

Sample Input

Sample Input 0

We promptly judged antique ivory buckles for the next prize

Sample Output 0

pangram

Sample Explanation 0

All of the letters of the alphabet are present in the string.

Sample Input 1

We promptly judged antique ivory buckles for the prize

Sample Output 1

not pangram

Sample Explanation 0

The string lacks an x.

输入格式

见题面

输出格式

见题面

样例输入
We promptly judged antique ivory buckles for the next prize
样例输出
pangram