Run ID:159003

提交时间:2026-08-24 21:37:57

#include<bits/stdc++.h> using namespace std; int main(){ int N; while (1){ cin>>N; string a[N]={}; string arr[4]={bowl,knife,fork,chopsticks}; for (int i=0;i<N;i++){ cin>>a[i]; for (int j=0;j<4;j++){ if (arr[j]==a[i]){ cout<<arr[j]<<" "; } } } cout<<endl; } return 0; }