Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for _ in range(int(input())):
- n = int(input())
- nos = list(map(int,input().split()))
- uniq = set(nos)
- is_uniq = True
- for val in uniq:
- if nos.count(val) > 1:
- is_uniq = False
- if is_uniq:
- print("beautiful")
- else:
- print("ugly")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement