Run ID:159002

提交时间:2026-08-24 21:31:12

#include<bits/stdc++.h> using namespace std; int main(){ while (1){ int N; cin>>N; string a[N],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; }