Source Code
it=int(input())
alphabet="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
for i in range(it):
    a =input()
    a=''.join(set(a))
    a= ''.join(sorted(a))
    if a in alphabet:
        print("YES")
    else:
        print("NO")
Copy
Well-indexed? azoz1111111
Python 3
141 ms
3.3 MB
Wrong Answer