13007 - Palindrome String
|
Time |
Memory |
| Case 1 |
1 sec |
32 MB |
| Case 2 |
1 sec |
32 MB |
| Case 3 |
1 sec |
32 MB |
| Case 4 |
1 sec |
32 MB |
| Case 5 |
1 sec |
32 MB |
Description
Given a string. Please write a C program to tell whether it’s a palindrome string or not.
Input
A string STR.
Note:
- 10 >= the length of STR >= 1.
Output
1(0)
Note that:
- Need to have a return value('\n') at the end of your output.
- If it’s a palindrome string, print(“1\n”); otherwise, print(“0\n”).
Tags