#C14149. Unique Characters Checker
Unique Characters Checker
Unique Characters Checker
You are given a string. Your task is to determine whether all characters in the string are unique. In other words, check if no character appears more than once in the string.
Note: The input is read from standard input (stdin) and the result should be printed to standard output (stdout) as either True
or False
.
The solution should be implemented without using additional data structures for checking uniqueness.
Example: For the input abcdef
, the output should be True
because every character in the string is distinct. Conversely, for the input aabbcc
the output should be False
since the characters are repeated.
inputFormat
The input consists of a single line containing the string. The string may contain letters, digits, spaces, and special characters. An empty string is also a valid input.
outputFormat
Output a single line containing either True
if all characters in the string are unique, or False
if there is any repeated character.
abcdef
True
</p>