Palindromes _ easy version

Source: Internet
Author: User

Palindromes _ easy version
Palindromes _ easy versionTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission (s): 22866 Accepted Submission (s): 14213


Problem Description "文" is a string with the same positive and reverse reads. For example, "level" or "noon" is a 文 string. Write a program to check whether the read string is a "reply ".
The Input contains multiple test instances. The first line of Input data is a positive integer n, indicating the number of test instances, followed by n strings.

Output: If a string is a return string, "yes" is Output; otherwise, "no" is Output ".

Sample Input

4levelabcdenoonhaha

Sample Output
Yesnoyesno source code: # include
 
  
# Include
  
   
# Include
   
    
Int main () {int n, I, flag, len; char str [100]; scanf ("% d", & n); getchar (); while (n --) {flag = 1; gets (str); len = strlen (str); for (I = 0; I
    
     

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.