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
Word Reversal
Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:32768KB
Total submit users: 136, Accepted users: 131
Problem 10040 : No special judgement
Problem description
  Given a list of words, print the words reversed on separate lines. Each word consists of English letters only.

Input
  The input consists of T test cases. The number of test cases (T) is given in the first line of the input file. Each test case consists of a single line, each line contains a word.

Output
  For each test case, print the word reversed on one line.

Sample Input
2
HelloWorld
Madam
Sample Output
dlroWolleH
madaM
Problem Source
  SJTU2004

Submit   Discuss   Judge Status  Problems  Ranklist 

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