You are viewing a single comment's thread. Return to all comments →
int main() {
/* Enter your code here. Read input from STDIN. Print output to STDOUT */ int T; char in[10000]; int output[10]; scanf("%d",&T); for(int j=0;j<T;j++) { scanf("%s",in); int len=strlen(in)-1; int x=1; for(int i=0;i<len;i++) { if(abs(in[i]-in[i+1]) != abs(in[len-i]-in[len-1-i])) { x=0; printf("Not Funny\n"); break; } } if(x==1) printf("Funny\n") ; } return 0;
}
Seems like cookies are disabled on this browser, please enable them to open this website
Funny String
You are viewing a single comment's thread. Return to all comments →
int main() {
}