题目链接:http://codeforces.com/problemset/problem/43/B
题目:字符匹配的问题。
#include <stdio.h>
int main(void)
{
char ch[205];
int c[128]={};
char ch1[205];
int i;
gets(ch);
for(i=0;ch[i];i++)
c[ch[i]]++;
gets(ch1);
int flag=0;
for(i=0;ch1[i];i++)
if(ch1[i]!=' ' && --c[ch1[i]]<0) flag=1;
puts(flag?"NO":"YES");
return 0;
}