8 条题解

  • 1
    @ 2021-02-27 14:35:18
    #include<iostream>
    using namespace std;
    int main()
    {
        char a[1000];
        int i=0,n=0;
        while((a[n]=getchar())!='\n')
            n++;
        n--;
        while(a[i]==a[n-i])
              i++;
        if(i>n/2) cout<<"yes";
        else cout<<"no";
        return 0;
    }
    
  • 1
    @ 2020-09-16 22:53:34

    #python3

    s=input()
    a=s[::-1]
    if a==s:
        print("yes")
    else:
        print("no")
    
  • 0
    @ 2020-09-21 16:12:05
    string=str(input("input string"))
    length=len(string)
    count=0
    for i in range(0,length-1):
        if string[i]!=string[-1-i]:
            count=1
            break
        else:
            continue
    if count==0:
        print("yes")
    else:
        print("no")
        
    
  • 0
    @ 2020-09-21 16:11:41

    Gene20191 LV 8 @ 5 天前
    python
    a = input()
    p = len(a)
    def decide(a):
    for i in range(int(p/2)):
    if a[i] == a[p-i-1]:
    continue
    else:
    return False
    return True
    if decide(a)==True:
    print("yes")
    else:
    print("no")

  • 0

    a = input()

    b = a[::-1]
    if a == b:
    print('yes')
    else:
    print('no')

  • 0
    @ 2020-09-21 16:08:04

    s=input()
    c=s[::-1]
    if c==s:
    print('yes')
    else:
    print('no')

  • 0
    @ 2020-09-16 16:20:10
    from math import floor
    
    n = str(input())
    m = floor((1/2)*len(n))
    x = n[len(n)-m:]
    if n[:m] == x[::-1]:
        print("yes")
    else:
        print("no")
    
    
  • 0
    @ 2020-09-16 11:18:03

    a = input()
    p = len(a)
    def decide(a):
    for i in range(int(p/2)):
    if a[i] == a[p-i-1]:
    continue
    else:
    return False
    return True

    if decide(a)==True:
    print("yes")
    else:
    print("no")

  • 1

信息

ID
1027
难度
4
分类
(无)
标签
(无)
递交数
86
已通过
35
通过率
41%
上传者