Welcome   HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online
Home
FAQs
Problem Set
Practices
Online Contests
Major Exercises
OI Special
Judgement
Submit
Online Status
User Ranklist
Users
Register new
Login
Web Links
Hunan Normal University
College of Mathematics and Computer Science
How to make the strings upside down
Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:32768KB
Total submit users: 50, Accepted users: 27
Problem 10034 : No special judgement
Problem description
  The children often play a game like this.When one child say some words like "abc",the other must say "cba" as soon as possible.When we take them in the computer,it will give the correct answer quickly. But in China,there is a big problem when we play the game.The ideogram covers different bits from English letter.That is to say, we will consider that how to give a new string which is read from back to front.Meanwhile,don't change any ideograms.

Input
  Standard input will contain multiple test cases. The first line of the input is a single integer T which is the number of test cases. T test cases follow, each string is on a separate line and consists of at most 1,000 letters or ideograms.

Output
  The output will contain a new string which is read from back to front.

Sample Input
1
Acm 程序设计大赛
Sample Output
赛大计设序程 mcA
Problem Source
  HNU Monthly 2006.2

Submit   Discuss   Judge Status  Problems  Ranklist 

HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online, Version 2010.5.5.final.
Web visits:1328 today,10434412 total, since 2010-05-07