按题意模拟即可 # include <bits/stdc++.h> using namespace std; int main() { string k, s; cin >> k >> s; vector<char> alphabet; unordered_set<char> seen; for (auto& ch: k) { if (!seen.count(ch)) { seen.insert(ch); alphabet...