-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathCF469A.cpp
More file actions
52 lines (44 loc) · 754 Bytes
/
CF469A.cpp
File metadata and controls
52 lines (44 loc) · 754 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
#include<bits/stdc++.h>
#define ll long long
#define mn 10000007
using namespace std;
void koli()
{int n;
cin>>n;
int sum=0;
for(int i=1;i<=n;i++) {
sum+=i;
}
int x,y;
cin>>x;
vector<int> ax;
for(int i=0;i<x;i++)
{int a;cin>>a;
ax.push_back(a);
}
cin>>y;
vector<int> ay;
for(int i=0;i<y;i++)
{int b;cin>>b;
ay.push_back(b);
}
vector<int> fnl=ax;;
fnl.insert(fnl.end(),ay.begin(),ay.end());
sort(fnl.begin(),fnl.end());
fnl.erase(unique(fnl.begin(),fnl.end()),fnl.end());
int sum2=0;
for(int i=0;i<fnl.size();i++)
{sum2+=fnl[i];
}
if(sum==sum2){cout<<"I become the guy."<<endl;}
else cout<<"Oh, my keyboard!"<<endl;
}
int main()
{
ios_base::sync_with_stdio(false);cin.tie(0);
//int t;
// cin>>t;
// while(t--)
koli();
return 0;
}