题意
给出两个字符串, 第二个字符串出现的类型必须在第一个字符串中出现过,同时第一个字符串的长度要比第二字符串长
#include <iostream>
#include <string>
#include <vector>
#include <cctype>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <unordered_map>
#include <cmath>
using namespace std;
int main(){
string a, b;
while(cin>>a>>b){
unordered_map<char, int> mp;
for(auto c: a) mp[c]++;
bool res = false;
for(auto c: b){
if(!mp.count(c)) {
res = true;
break;
}
}
if(!res && a.size() > b.size()) cout<<"Yes"<<endl;
else cout<<"No"<<endl;
}
return 0;
}