StringCodeProblem code: RGPVR101 |
All submissions for this problem are available.
A string has been given and you have to generate a string code. The code is generated in the following manner:- the left half of each code is being generated starting in the middle of the string and proceeding out toward the left. Similarly, the right half of each code is being generated starting at the right and proceeding in toward the middle of the string. For example, the string ABCDEFGHIJKLMNOPQRSTUVWXYZ is being coded as MLKJIHGFEDCBAZYXWVUTSRQPON
Input
Input will begin with an integer T, the number of test cases. Then there are T lines, each containing exactly one String.
String contains between 2 and 50 characters, inclusive.
String contains an even number of characters.
String contains only uppercase letters ('A'-'Z') .
1<=T<=20
Output
For every String, output a single line containing String code.
Example
Input: 3 ABCDEFGHIJKLMNOPQRSTUVWXYZ AB AZDPDP Output: MLKJIHGFEDCBAZYXWVUTSRQPON AB DZAPDP
| Author: | rgpvcodeforce |
| Date Added: | 8-04-2011 |
| Time Limit: | 2 sec |
| Source Limit: | 50000 Bytes |
| Languages: | C, CPP 4.0.0-8, CPP 4.3.2, JAVA |
Comments
SUCCESSFUL SUBMISSIONS FOR THIS PROBLEM:
HELP
Program should read from standard input and write to standard output. After you submit a solution you can see your results by clicking on the [My Submissions] tab on the problem page. Below are the possible results:
- Accepted
Your program ran successfully and gave a correct answer. If there is a score for the problem, this will be displayed in parenthesis next to the checkmark. - Time Limit Exceeded
Your program was compiled successfully, but it didn't stop before time limit. Try optimizing your approach. - Wrong Answer
Your program compiled and ran succesfully but the output did not match the expected output. - Runtime Error
Your code compiled and ran but encountered an error. The most common reasons are using too much memory or dividing by zero. For the specific error codes see the help section. - Compilation Error
Your code was unable to compile. When you see this icon, click on it for more information.
If you are still having problems, see a sample solution here.

Fetching successful submissions

class strcod { public
Your class containing the
@admin my solution
What is wrong in this
here the string doesnot
for eg: for string "asd" it