-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path469A.c
More file actions
54 lines (47 loc) · 796 Bytes
/
469A.c
File metadata and controls
54 lines (47 loc) · 796 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#include<stdio.h>
#include <string.h>
int main()
{
int n,i;
scanf("%d",&n);
int array1[1000];
for (i=1; i<=n; i++)
{
array1[i]=i;
}
int p;
scanf("%d",&p);
int array2[1000];
for (i=1; i<=p; i++)
{
scanf("%d",&array2[i]);
}
int q;
scanf("%d",&q);
for (i=p+1; i<=(p+q); i++)
{
scanf("%d",&array2[i]);
}
int count=0;
for (i=1; i<=n; i++)
{
for ( int j=1; j<=(p+q); j++)
{
if (array2[j]==i)
{
count++;
array2[j]=0;
break;
}
}
}
if (count==n)
{
printf("I become the guy.\n");
}
else
{
printf("Oh, my keyboard!\n");
}
return 0;
}