- #include <bits/stdc++.h>
- using namespace std;
- int main(){
- int t, cs = 0, f;
- char n[13], p[13];
- scanf("%d", &t);
- while(t--){
- scanf("%s", n);
- int sz = strlen(n);
- strcpy(p, n);
- reverse(n, n+sz);
- printf("Case %d: ", ++cs);
- puts((strcmp(n, p) == 0)?"Yes":"No");
- }
- return 0;
- }
No comments:
Post a Comment