#include <stdio.h>
int main()
{
char c;
int record[128] = {0};
while((c = getchar()) != '\n')
record[(int)c]++;
while((c = getchar()) != '\n')
record[(int)c]--;
int more = 0, less = 0, i;
for(i = 0; i < 128; i++)
{
if(record[i] > 0)
more += record[i];
if(record[i] < 0)
less -= record[i];
}
if(less)
printf("No %d", less);
else
printf("Yes %d", more);
return 0;
}
网友评论