469A - I Wanna Be the Guy
来源:互联网 发布:俄罗斯酗酒知乎 编辑:程序博客网 时间:2024/05/16 06:29
#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;}
0 0
- 469A - I Wanna Be the Guy
- A. I Wanna Be the Guy
- 【CodeForces】A. I Wanna Be the Guy
- codeforces-#469A. I Wanna Be the Guy(模拟)
- CodeForces 469A. I Wanna Be the Guy(数学)
- Codeforces 469A I Wanna Be the Guy(水题)
- CF 469A I Wanna Be the Guy
- Codeforces 469A I Wanna Be the Guy
- CodeForces 469A. I Wanna Be the Guy set简单应用
- Codeforces I Wanna Be the Guy
- I wanna be a DBA
- I don't wanna be in the dark!
- binshenOJ 1215-I Wanna Be A Palindrome (YY)
- kuangbinOJ G I Wanna Be A Palindrome (贪心)
- I wanna a girl
- I Am A Tough Guy
- Make Anonymous be the lucky guy
- I'm the new guy here
- iOS应用架构谈 开篇
- window 清除目录中svn
- hibernate自动生成id类的原因
- mysql安装后远程连接不上解决办法
- centos 6.5下安装及使用shiny server
- 469A - I Wanna Be the Guy
- Metaio SDK 6.0.2自带Example自己实现(二)
- 8个华丽而实用的Java图表类库
- MySQL 之 join 详解
- Jackson 框架,轻易转换JSON
- Mac OS X 配置环境变量
- Android涂鸦技术及刮刮乐示例分析
- poi导出Excel,HSSFWorkbook与XSSFWorkbook区别
- history命令添加时间---测试磁盘写入速度