Skip to content

Problem Bob's crush's name starts with a vowel. That's the reason Bob loves vowels too much. He calls a string "lovely string" if it contains either all the lowercase vowels or all the uppercase vowels or both, else he calls that string "ugly string". For more clarification, see the sample testcase explanation. Input First line contains T, the n…

Notifications You must be signed in to change notification settings

AfaqShuaib09/The-String-Problem-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

The-String-Problem-

Problem-

Bob's crush's name starts with a vowel. That's the reason Bob loves vowels too much. He calls a string "lovely string" if it contains either all the lowercase vowels or all the uppercase vowels or both, else he calls that string "ugly string". For more clarification, see the sample testcase explanation.

Input-

First line contains T, the number of test cases. Next T lines contain a single string S.

Output-

For each test case, print "lovely string" or "ugly string" (without quotes) according to the definition of Bob. Constraints string contains only lowercase and uppercase Latin letters.

About

Problem Bob's crush's name starts with a vowel. That's the reason Bob loves vowels too much. He calls a string "lovely string" if it contains either all the lowercase vowels or all the uppercase vowels or both, else he calls that string "ugly string". For more clarification, see the sample testcase explanation. Input First line contains T, the n…

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages