CATXAT - CAT and XAT
In a certain language (consisting of 26 upper case alphabets only),
CAT is written as ZGXEQX.
XAT is written as UBXEQX.
You are given various strings as input and according to the translation logic potrayed by above examples you need to give its corresponding string in that other language.
Input Specification:
First line consists of t, the number of test cases. Next t lines consists of a string s consisting of uppercase alphabets (A-Z) only.
Output Specification:
Output consists of t lines each containing the final transformed output string for given input string.
Constraint:
t <= 100
1<=length(s) <= 100
Sample Input:
2
CAT
XAT
Sample Output:
ZGXEQX
UBXEQX
hide comments
dwzy:
2018-12-22 16:14:42
. |
|
reaper2003:
2018-03-16 08:12:34
easy acc |
|
shubham_cs_iet:
2017-01-18 12:24:53
should be moved to Tutorial..!! |
|
Avinash Kodakandla:
2015-09-23 07:52:32
what should be the ans for CATAT ? |
|
:.Mohib.::
2015-02-17 18:23:19
Easy... |
|
RIVU DAS:
2015-02-16 17:19:06
Tutorial Stuff!! |
Added by: | Sanket Singhal |
Date: | 2015-02-16 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All except: ASM64 JS-MONKEY |
Resource: | Own Problem(CQM-7 BIT Mesra) |