1 #include <bits/stdc++.h> 2 using namespace std; 3 4 int main() 5 { 6 // please write your code here 7 string s1,s2; 8 int arr[26],brr[26]; 9 ios::sync_with_stdio(false);///提高cin输入效率 10 while( cin>>s1>>s2){ 11 memset(arr,0,sizeof(arr)); 12 memset(brr,0,sizeof(brr)); 13 for(int i=0;s1[i];i++) arr[s1[i]-'a']++; 14 for(int i=0;s2[i];i++) brr[s2[i]-'a']++; 15 bool flag = false; 16 for(int i=0;i<26;i++) 17 if(arr[i]>brr[i]){ 18 flag = true; 19 } 20 21 if(flag) cout<<"false"<<endl; 22 else cout<<"true"<<endl; 23 } 24 return 0; 25 }