解题思路:
注意事项:
参考代码:
#include<stdio.h>
#include<string.h>
int main()
{
char str[6];
int n;
scanf("%d", &n);
while (n--)
{
scanf("%s", str);
if (strcmp(str, "WYS") == 0)
printf("KXZSMR\n");
else if (strcmp(str, "CQ") == 0)
printf("CHAIQIANG\n");
else if (strcmp(str, "LC") == 0)
printf("DRAGONNET\n");
else if (strcmp(str, "SYT") == 0 || strcmp(str, "SSD") == 0 || strcmp(str, "LSS") == 0 || strcmp(str, "LYF") == 0)
printf("STUDYFATHER\n");
else
printf("DENOMINATOR\n");
}
return 0;
}
0.0分
0 人评分