13007 - Palindrome String   

Description

Given a string. Please write a C program to tell whether it’s a palindrome string or not.

Input

A string STR.

Note:

  1. 10 >= the length of STR >= 1.

Output

1(0)

Note that:

  1. Need to have a return value('\n') at the end of your output.
  2. If it’s a palindrome string, print(“1\n”); otherwise, print(“0\n”).
 

Sample Input  Download

Sample Output  Download

Tags




Discuss