水题。
附ac代码:
#include <stdio.h>
#include <string.h>
char s[50], *a[] = {"bowl", "knife", "fork", "chopsticks"};
int main(){
int t, i;
while(scanf("%d", &t) == 1){
while(t-- && scanf("%s", s))
for(i = 0; i != 4; ++i)
if(strcmp(s, a[i]) == 0) printf("%s ", s);
puts("");
}
return 0;
}