Pangrams English
-
Upload
jobin-jose -
Category
Documents
-
view
213 -
download
1
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