Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- #define optimize() ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
- using namespace std;
- int main()
- {
- optimize();
- int t;
- cin>>t;
- while(t--)
- {
- string st;
- cin>>st;
- string str=st;
- reverse(str.begin(),str.end());
- if(str==st) cout<<"Yes\n";
- else cout<<"No\n";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement