这个题好像乙级也出现过,简单题。先统计前一个字符串中相同种类的个数
用unordered_map神来之笔 非常方便进行映射
第二个字符串进行查找 如果没有就cnt++
最后判断cnt进行输出
`#include
#include
using namespace std;
unordered_map q;
int cnt;
int main()
{string s1,s2;cin>>s1>>s2;for(int i=0;i0) q[s2[i]]--;else cnt++;}if(cnt) cout<<"No "<