#include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;
#define pf printf
#define sf scanf
#define size 105
int p_arr[size], q_arr[size], test[size];
int main()
{
int n, p, q, t=0, i, count;
sf("%d", &n);
sf("%d", &p);
for(i=1; i<=p; i++)
{
sf("%d", &p_arr[i]);
t = p_arr[i];
test[t] = 1;
}
sf("%d", &q);
for(i=1; i<=q; i++)
{
sf("%d", &q_arr[i]);
t = q_arr[i];
test[t] = 1;
}
count = 0;
for(t=1; t<=n; t++)
{
if(test[t]==1)
{
count++;
}
}
if(count==n)
{
pf("I become the guy.\n");
}
else
{
pf("Oh, my keyboard!\n");
}
return 0;
}
#include<cstdio>
#include<cmath>
using namespace std;
#define pf printf
#define sf scanf
#define size 105
int p_arr[size], q_arr[size], test[size];
int main()
{
int n, p, q, t=0, i, count;
sf("%d", &n);
sf("%d", &p);
for(i=1; i<=p; i++)
{
sf("%d", &p_arr[i]);
t = p_arr[i];
test[t] = 1;
}
sf("%d", &q);
for(i=1; i<=q; i++)
{
sf("%d", &q_arr[i]);
t = q_arr[i];
test[t] = 1;
}
count = 0;
for(t=1; t<=n; t++)
{
if(test[t]==1)
{
count++;
}
}
if(count==n)
{
pf("I become the guy.\n");
}
else
{
pf("Oh, my keyboard!\n");
}
return 0;
}
No comments:
Post a Comment