# | Problem | Pass Rate (passed user / total user) |
---|---|---|
14732 | Is it palindrome? |
|
14733 | String Ninja |
|
Description
Palindrome is a word, phrase, or sequence that reads the same backwards as forwards.
Write a simple code to check if the input string S is a palindrome
(uppercase letter are not equal to lowercase letter)
Input
First line contain integer n indicating the number of testcases, the next n lines contain the input string S
1 <= len(S) <= 1000
Output
Output Yes if it is a palindrome and No if it is not.
Sample Input Download
Sample Output Download
Tags
Discuss
Description
A cool ninja can split themself and multiply themself
Given string S, integer l and integer r. extract the substring between l and r-1 and repeat it by (r-l) times
Input
The first line contain string S, following with integer l ,and integer r on the next line.
0 <= len(S) <= 100
0 <= l < r <= len(S)
Output
Output the computed string ret_S