1 solutions

  • 0
    @ 2024-3-18 15:31:18

    #include #include

    using namespace std;

    string s;

    bool Rev(string s){ int len = s.length(); for (int i=0;i<=len-1;i++) if (s[i]!=s[len-i-1]) return 0; return 1; }

    int main(){ cin >> s;

    if (Rev(s))	cout << "yes";
    else		cout << "no";
    

    }

    • 1

    Information

    ID
    6939
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    1
    Tags
    # Submissions
    56
    Accepted
    41
    Uploaded By