#include <iostream> using namespace std; int main() { string str; string strafter; string strkey; cin >> str; cin >> strkey; for (auto &it : str) { if (string::npos == strafter.find(it)) { strafter += it; } ...