Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
26819 | 唐心 | 晚餐 | C++ | Accepted | 2 MS | 732 KB | 325 | 2022-05-24 17:04:07 |
#include <iostream> #include <cstdlib> #include <cstring> using namespace std; int main() { int i,j,num; string str; while(cin >> num) { for(i = 0; i < num;i++) { cin >>str; if(str=="bowl"||str=="knife"||str=="fork"||str=="chopsticks") cout<<str<<" "; } cout <<endl; } return 0; }