Terrible Chandu
Practice
3.6 (642 votes)
Ad Hoc
Easy
Open
String manipulation
Problem
75% Success 44483 Attempts 20 Points 1s Time Limit 256MB Memory 1024 KB Max Code
Chandu is a bad student. Once his teacher asked him to print the reverse of a given string. He took three hours to solve it. The teacher got agitated at Chandu and asked you the same question. Can you solve it?
Input:
The first line contains an integer T, denoting the number of test cases.
Each test case contains a string S, comprising of only lower case letters.
Output:
For each test case, print the reverse of the string S.
Constraints:
1 <= T <= 10
1 <= |S| <= 30
Code Editor
Please login to use the editor
You need to be logged in to access the code editor
Loading...
Please wait while we load the editor
Results
Custom Input
Run your code to see the output
Submissions
Please login to view your submissions
Similar Problems
Points:20
1 votes
Tags:
AlgorithmsBasics of String ManipulationString Algorithms
Points:20
10 votes
Tags:
Basics of String ManipulationString AlgorithmsAlgorithms
Points:20
17 votes
Tags:
AlgorithmsBasic ProgrammingEasyString Manipulation
Editorial
Login to unlock the editorial
Please login to use the editor
You need to be logged in to access the code editor
Loading...
Please wait while we load the editor
Results
Custom Input
Run your code to see the output