#K88622. Balanced String Checker
Balanced String Checker
Balanced String Checker
You are given a string s. A string is considered balanced if every distinct character appears the same number of times. For example, "aabbcc" is balanced because each character appears twice, whereas "aabbc" is unbalanced.
Your task is to determine if the given string is balanced. The string contains only printable characters, and you should treat the input as case sensitive.
Note: The solution should read from standard input (stdin) and write the answer to standard output (stdout). The output should be exactly True
if the string is balanced, and False
otherwise.
inputFormat
The input consists of a single line containing the string s which needs to be checked. The string will be provided via standard input.
outputFormat
Output True
if the string is balanced. Otherwise, output False
. The output should be written to standard output.
aabbcc
True