#C14598. Unique Characters in Strings

    ID: 44264 Type: Default 1000ms 256MiB

Unique Characters in Strings

Unique Characters in Strings

Given a list of strings, determine whether each string consists of all unique characters. A string is considered to have unique characters if no character appears more than once. Mathematically, for a string ( s ), the condition for uniqueness is ( |s| = |{ s_i : s_i \in s }| ). Read input from stdin and output the results to stdout.

inputFormat

The first line contains an integer ( T ), representing the number of strings. Each of the following ( T ) lines contains a single string.

outputFormat

For each string, output "True" if all characters in the string are unique, or "False" otherwise. Each result should be printed on a new line.## sample

4
hello
world
abcdefg
aabbcc
False

True True False

</p>