| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 159004 | 格林老师 | 晚餐 | C++ | Output Limit Exceeded | 39 MS | 272 KB | 436 | 2026-08-24 21:44:12 |
#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; }