标签:style http io ar color os sp for strong
红色字很重要
3 basketball fork chopsticks 2 bowl letter
fork chopsticks bowl
#include<stdio.h>
#include<string.h>
char str[1010][20];
int main()
{
int n,i;
while(~scanf("%d",&n))
{
for(i=0;i<n;i++)
scanf("%s",str[i]);
for(i=0;i<n;i++)
{
if(strcmp(str[i],"bowl")==0)
printf("bowl ");
if(strcmp(str[i],"knife")==0)
printf("knife ");
if(strcmp(str[i],"fork")==0)
printf("fork ");
if(strcmp(str[i],"chopsticks")==0)
printf("chopsticks ");
}
printf("\n");
}
return 0;
}
标签:style http io ar color os sp for strong
原文地址:http://blog.csdn.net/qq_16767427/article/details/41266757