CodeForces 469A. I Wanna Be the Guy set简单应用
来源:互联网 发布:剑三毒姐捏脸数据 编辑:程序博客网 时间:2024/05/21 14:56
set 去重
#include <iostream>#include <cstdio>#include <string>#include <cstring>#include <algorithm>#include <cmath>#include <queue>#include <vector>#include <set>#include <stack>#include <map>#include <climits>using namespace std;typedef long long ll;const int maxn = 10000 + 7, INF = 0x3f3f3f3f, mod = 1e9 + 7;int m, n1, n2, a;set<int> st;int main() { scanf("%d", &m); scanf("%d", &n1); for(int i = 0; i < n1; ++i) { scanf("%d", &a); st.insert(a); } scanf("%d", &n2); for(int i = 0; i < n2; ++i) { scanf("%d", &a); st.insert(a); } if((int)st.size() == m) return 0*puts("I become the guy."); else return 0*puts("Oh, my keyboard!"); return 0;}
阅读全文
1 0
- CodeForces 469A. I Wanna Be the Guy set简单应用
- 【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(水题)
- Codeforces 469A I Wanna Be the Guy
- 469A - I Wanna Be the Guy
- Codeforces I Wanna Be the Guy
- A. I Wanna Be the Guy
- CF 469A 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
- Android使用HttpURLConnection发送网络请求(笔记)
- python开发工具pycharm使用简介
- Jdbc时间类型的处理
- 内存泄漏工具
- JZOJ 5426. 【NOIP2017提高A组集训10.25】摘Galo
- CodeForces 469A. I Wanna Be the Guy set简单应用
- 聚簇因子和执行计划
- [P1280]尼克的任务
- 文字特效JS代码,演示:
- Docker学习二:Docker基本概念以及安装卸载
- 向内的螺旋矩阵(C语言)
- Python函数的定义
- centos下搭建web服务器
- 【慕课网_性能优化之MySQL优化_学习】【10】