1 solutions

  • 0
    @ 2026-1-31 11:02:55
    #include<bits/stdc++.h>
    using namespace std;
    string s1,s2;
    int main(){
    	getline(cin,s1);
    	s2 = s1;
    	reverse(s1.begin(),s1.end());
    	if(s1==s2) cout<<"yes";
    	else cout<<"no";
    	return 0;
    }
    
    • 1

    Information

    ID
    347
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    9
    Tags
    # Submissions
    12
    Accepted
    4
    Uploaded By