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; }
相关文章推荐
- Codeforces 469A - I Wanna Be the Guy (这俩方法都很好)
- Codeforces 469A I Wanna Be the Guy(水题)
- 【CodeForces】A. I Wanna Be the Guy
- A. I Wanna Be the Guy
- Make Anonymous be the lucky guy
- 【随感】i wanna be the people like them ~
- I don't wanna be in the dark!
- cannot be opened with the QT 4 from editor.try converting the file using uic.exe
- 来自站点http://thecodist.com/article/all-i-need-to-know-to-be-a-better-programmer-i-learned-in-kindergar
- PHP expresses two different strings to be the same [duplicate]
- HDU2509 Be the Winner
- Error Domain=NSURLErrorDomain Code=-1022 "The resource could not be loaded b
- Eclipse There are no resources that can be added or removed from the server.
- 遇到的问题-----java The type java.lang.String cannot be resolved. It is indirectly referenced fr
- Xcode7 beta 网络请求报错:The resource could not be loaded because the App Transport Security policy requir
- The absolute uri: http://java.sun.com/jstl/core cannot be resolved in either web.xml or the jar file
- The import javax.servlet.http.HttpServletRequest cannot be resolved
- The AnimationClip 'Walk' used by the Animation component 'Pig' must be marked as Legacy.
- The function getUserId must be used with a prefix when a default namespace is not specified 解决办法
- Darkness in the life should never be forgotten!