Problem3723--周周练-第9周:自定义函数综合4

3723: 周周练-第9周:自定义函数综合4

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 1  Solved: 1
[Status] [Submit] [Creator:]

Description

输入n个字符串,将每一个字符串都倒序输出。
(建一个自定义函数f(s),可以将字符串s变成其逆序字符串

Input

第一行一个整数n
接下来n行,每行一个字符串(不含空格)

Sample Input Copy

3
apple
pen
banana

Sample Output Copy

elppa
nep
ananab

Source/Category