Codeforces “ 469A – I Wanna Be the Guy” 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()
{
    int f,p,q,arr[200],count=0;
    cin>>f>>p;
    for(int i=0; i<p; i++)
    {
        cin>>arr[i];
    }
    cin>>q;
    for(int i=p; i<p+q; i++)
    {
       cin>>arr[i];
    }
    sort(arr,arr+(p+q));
    for(int i=0; i<p+q; i++)
    {
        if(arr[i]!=arr[i+1])
        {
            count++;
        }
    }
    if(count==f)
    {
        cout<<"I become the guy.";
    }
    else
    {

 

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.

More solutions are coming so Like our Facebook page and Subscribe to our YouTube channel to stay connected.

Leave a Comment