Pangrams English

Post on 07-Dec-2015

213 views 1 download

Transcript of Pangrams English

PangramsProblemStatement

Roywantedtoincreasehistypingspeedforprogrammingcontests.So,hisfriendadvisedhimtotypethesentence"Thequickbrownfoxjumpsoverthelazydog"repeatedly,becauseitisapangram.(Pangramsaresentencesconstructedbyusingeveryletterofthealphabetatleastonce.)

Aftertypingthesentenceseveraltimes,Roybecameboredwithit.Sohestartedtolookforotherpangrams.

Givenasentence ,tellRoyifitisapangramornot.

InputFormatInputconsistsofalinecontaining .

ConstraintsLengthof canbeatmost anditmaycontainspaces,lowercaseanduppercaseletters.Lowercaseanduppercaseinstancesofaletterareconsideredthesame.

OutputFormatOutputalinecontaining pangram if isapangram,otherwiseoutput notpangram .

SampleInput#1

Wepromptlyjudgedantiqueivorybucklesforthenextprize

SampleOutput#1

pangram

SampleInput#2

Wepromptlyjudgedantiqueivorybucklesfortheprize

SampleOutput#2

notpangram

ExplanationInthefirsttestcase,theansweris pangram becausethesentencecontainsallthelettersoftheEnglishalphabet.

s

s

s 103 (1 ≤ |s| ≤ )103

s