Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
12559 | 蒋瀚辉 | 晚餐 | C++ | Accepted | 1 MS | 728 KB | 278 | 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; }