Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
159005 格林老师 晚餐 C++ Compile Error 0 MS 0 KB 338 2026-08-24 21:55:06

Tests(0/0):


Code:

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


Run Info: