Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- typedef long long ll;
- int main()
- {
- int ts;
- cin>>ts;
- cin.ignore();
- for(int t=1;t<=ts;t++)
- {
- string s;
- int i,j;
- getline(cin,s);
- i=0,j=s.size()-1;
- while(i<=j)
- {
- if(s[i]!=s[j])break;
- i++;
- j--;
- }
- if(i<=j)printf("Case %d: No\n",t);
- else printf("Case %d: Yes\n",t);
- }
- }
RAW Paste Data