leetcode771时间:2023-03-10 04:26:56 int numJewelsInStones(string J, string S) { set<char> st; int count = ; for (auto c : J) { st.insert(c); } for (auto s : S) { if (st.find(s) != st.end()) { count++; } } return count; }