网站大量收购独家精品文档,联系QQ:2885784924

第五届黑龙江大学生程序竞赛题目.doc

  1. 1、本文档共9页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 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(越位)? Input The 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! Hint If 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 1 5 5 SkirtA SkirtB SkirtC SkirtD SkirtE D SkirtA D SkirtB D SkirtC D SkirtD W SkirtA Sample Output 2 1003 XiaoA has N friends , now he would like to co

文档评论(0)

xy88118 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档