-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIWannaBetheGuy.c
59 lines (44 loc) · 884 Bytes
/
IWannaBetheGuy.c
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
54
55
56
57
58
59
#include<stdio.h>
int main(){
int n;
int p,q;
scanf("%d",&n);
scanf("%d",&p);
int arr1[p];
for(int i = 0; i < p; i++){
scanf("%d",&arr1[i]);
}
scanf("%d",&q);
int arr2[q];
for(int i = 0; i < q; i++){
scanf("%d",&arr2[i]);
}
int arr[p+q];
for(int i = 0; i < p+q; i++){
if(i < p){
arr[i] = arr1[i];
}else{
arr[i] = arr2[i-p];
}
}
int output = 1;
for(int i = 1; i <= n; i++){
int check = 0;
for(int j = 0; j < p+q; j++){
if(i == arr[j]){
check = 1;
break;
}
}
if(check == 0){
output = 0;
break;
}
}
if(output){
printf("I become the guy.");
}else{
printf("Oh, my keyboard!");
}
return 0;
}