Run ID:160316

提交时间:2026-09-14 21:52:19

#include <bits/stdc++.h> using namespace std; int main() { int n; // 多组测试用例 while (cin >> n) { int cnt = 0; string s; for(int i = 1; i <= n; i++) { cin >> s; // 判断是不是餐具 if(s == "bowl" || s == "knife" || s == "fork" || s == "chopsticks") { cnt++; } } cout << cnt << endl; } return 0; }