Run ID:12559
提交时间:2021-05-21 14:37:21
#include <bits/stdc++.h> using namespace std; int a; int main() { string b; while(cin >> a) { for(int i=1;i<=a;i++) { cin >> b; if(b=="bowl" || b=="knife" || b=="fork" || b=="chopsticks") cout << b << " "; } cout << endl; } return 0; }