您的位置:首页 > 其它

469A - I Wanna Be the Guy

2015-05-25 11:45 239 查看
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <string>
#include <vector>
#include <queue>
#include <algorithm>
using namespace std;
bool mark[110];

int main() {

    int n, cnt = 0;
    int p, q, x;
    memset(mark, false, sizeof(mark));
    cin >> n;
    cin >> p;
    for(int i = 0; i < p; ++i) {
        cin >> x;
        if(!mark[x]) {
            mark[x] = true;
            cnt++;
        }
    }
    cin >> q;
    for(int i = 0; i < q; ++i) {
        cin >> x;
        if(!mark[x]) {
            cnt++;
        }
    }
    if(cnt == n) {
        cout << "I become the guy." << endl;
    } else {
        cout << "Oh, my keyboard!" << endl;
    }
    return 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: