#include <stdio.h>
#include <string.h>
void main()
{
int i;
char *colour[]={"red", "blue", "yellow", "green", "black" };
char str[50];
getchar();
scanf("%s",str);
for(i=0;i<5;i++)
if(strcmp(colour[i],str)==0)
{
printf("%d\n",i+1);
break;
}
if (i==5)
printf("Not Found\n");
}
nisonGe
想长高的小孩
想长高的小孩
相关分类