- 1、本文档共9页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
第五届黑龙江大学生程序竞赛题目
第五届黑龙江大学生程序竞赛题目
1001
There is a football game between teamX and teamY, we assume the position of the center of football ground is (0, 0),the position of the teamYs goal is(100,0),the position of the teamXs goal is(-100,0).Now xiaoA in teamX wants to pass the football to his teammate xiaoB, was xiaoB offside(越位)?
InputThe first line of input contains a positive integer N = 10, the number of test cases.For each test case there is one line contains 24 number,the first and second number indicate the position of xiaoA, the third and forth number indicate the opsition of xiaoB, and the remaining numbers indicate the poistions of the team members in teamY.
Output
If xiaoB is offside output Oh, My god!, else output Come on!
Sample Input
1-99 0 99 0 1 0 2 0 3 0 4 0 5 0 6 0 7 0 8 0 9 0 10 0
Sample Output
Oh, My god!
HintIf xiaoA passes the football to xiaoB, and there is no members of teamY in front of xiaoB,then xiaoB is offside
1002
xiaoA is a beautiful girl, and she has so many skirts that she wont wear a skirt a second time before the skirt is washed.Now xiaoA wants to go shopping, how many skirts she can choose to wear.In order to distinguish these skirts,she gives out every skirt with a unique name.
Input
The first line of input contains a positive integer T (T = 100), the number of test cases.Each test case contains two integers N and M (1=N,M=100) in the first line.N is the number of skirts.M is the number of operations. Then N lines follow.Every line contains a word and the word is not longer than 10.Then M lines follow.Each line contains a character D or W and the name of a skirt. D indicates that xiaoA has wore the skirt. W indicates that xiaoA has washed the skirt.
Output
After the M operations, you need to output that how many skirts can be chosen by xiaoA to wear.
Sample Input
15 5SkirtA SkirtB SkirtC SkirtD SkirtED SkirtA D SkirtB D SkirtC D SkirtD W SkirtA
Sample Output
2
1003
XiaoA has N friends , now he would like to co
您可能关注的文档
最近下载
- 虾米曲线一体化防堵清堵振动煤斗改造方案2017.10.doc
- 电梯维修指引手册(日立MCA、HGP).pdf
- 牛津译林版八年级下册英语期末复习:全册Unit 1-Unit 8语法知识点提纲(实用,必备!).docx VIP
- 2025届高考散文专题之理解词义、句义.pptx
- 标准参照测验的设计与编制案例.ppt
- 《十万个为什么》-读书分享课件.pptx VIP
- 虾米曲线防堵清堵煤斗运行维护手册.pdf
- 最新人教版小学四年级数学下册期中考试题及答案(三套).pptx VIP
- 04水平四 七年级 武术18课时大单元计划+《健身长拳》.doc VIP
- 统编版语文六年级下册【全册】单元知识点复习课件.pptx VIP
文档评论(0)