Saturday, July 23, 2016

688B - Lovely Palindromes

#include<bits/stdc++.h>

using namespace std;

int main()
{
 string s,lp;
 cin>>s;
 lp=s;
 reverse(s.begin(),s.end());
 
 cout<<lp+s<<endl;
 lp="";
 
 return 0;
}

No comments:

Post a Comment

Thank you for commenting. Please wait for response :)