The Crownlands

0

0 votes
Easy
Problem

INPUT : ​The first line of input contains number of testcases T.

It is followed by T number of lines and each line  contains a string  containing only
uppercase english letters(‘A’ - ‘Z’). 
OUTPUT : In a single line ,print the required output corresponding to the input s.

s OUTPUT
BDE 45
ADD 33
BAE 30
FBA 41
BAD 21

 

 

 

 

 

 

CONSTRAINTS:

1<length(s)<=5

Time Limit: 5
Memory Limit: 256
Source Limit:
Editor Image

?