Start: Dec, 27, 2015 17:15:00
2015年秋学期《程序设计基础》第三次上机考试
End: Dec, 27, 2015 20:45:00
Time elapsed:
Time remaining:

Problem_ID: E
Result: Accepted
Time: 1ms
Memory: 1092kB
Author: suring
In contest: 1043

#include<stdio.h>
#include<string.h>
int main()
{
	char s[200];
	int i,a,x;
	

	{
		while(scanf("%s",s)!=EOF){
		a=strlen(s);
		for(i=0;i<a/2;++i)
		{
			if(s[i+1]!=s[a-i-1]&&s[i]!=s[a-i-2]){               
				printf("zz cry\n");               
			break;}}      
		if(i==strlen(s)/2)            
			printf("zz happy!\n");}  } 
		}