#include <iostream>
using namespace std;
int main() {
string s1, s2;
cin >> s1 >> s2;
int count = 0;
int flag = 0;
for(int i = 0; i < s2.length(); i++) {
for(int j = 0; j < s1.length(); j++) {
if(s2[i] == s1[j]) {
s1[j] = ' ';
count++;
break;
}
}
if(count == s2.length()) {
flag = 1;
}
}
if(flag) {
cout << "Yes" << " " << s1.length() - count;
} else {
cout << "No" << " " << s2.length() - count;
}
return 0;
}
1039.到底买不买
最新推荐文章于 2022-09-24 08:00:00 发布