All Tracks Problem

Balanced Strings
/

Basic Programming, Hash table, HashMap

Problem
Editorial
Analytics

Balance strings, by definition, are the strings that contain all the characters of the alphabet, from a to z, equal no of times. eg- abcdefghijklmnopqrstuvwxyz is a balanced string, aabb is not.

Input:
First line contains number of test cases T. Each test case contains a string S which made up of only lowercase characters.

Output:
For each test case print Yes if the string is balanced string else print No.

Constraints:
1<=T<=10
1<=|S|<=1000

SAMPLE INPUT
2
codemyca
abcdefghijklmnopqrstuvwxyz
SAMPLE OUTPUT
No
Yes
Time Limit: 2.0 sec(s) for each input file.
Memory Limit: 256 MB
Source Limit: 1024 KB

Best Submission

Similar Problems

Contributors

This Problem was Asked in

Initializing Code Editor...
Notifications
View All Notifications

?