Codeforces “ 141A – Amusing Joke” solution( Bangla ) | Cpp language

**Before watching this make sure that you’ve tried enough**

#include<iostream>
#include<bits/stdc++.h>
using namespace std;
int main()
{
    string s1,s2,s3;
    cin>>s1>>s2>>s3;
    string s4 = s1+s2;
    sort(s3.begin(),s3.end());
    sort(s4.begin(),s4.end());
   if(s3==s4)
   {
       cout<<"YES";
   }
   else
   {
       cout<<"N0";
   }
}

 

If this solution helped you, please share this with your friends.
And if you have anything to say, let me know in the comment section.

Leave a Comment