← 返回 linkedin 的题目列表Reverse a String
类型:online_judge
Problem
Given a string s, reverse it and return the reversed string.
Input
One line string s.
Output
Print the reversed string.
Constraints
0 <= len(s) <= 10^5
The string may contain spaces and any printable characters (reverse as-is).
Example
Input:
hello
Output:
olleh
Example
Input
hello
Output
olleh