- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
The 7th ACM-ICPC Liaoning Province CPC Online Contest
Problem A: Guess
Time Limit:?1 Sec??Memory Limit:?32 MBSubmit:?176??Solved:?148[Submit][Status][Web Board]
Description
In the television program Shopping Street of CCTV-2, two people, A and B are guessing the price of a given item. You are asked to decide whose price is closer to the real price.?
Input
There are multiple test cases. The first line of input is an integer T (T = 20) indicating the number of test cases.
Each case contains three integers in one line: P, PA, PB (0 = PA, PB, P = 100, | PA – P | != | PB – P |), indicating the real price, the price A guesses and the price B guesses.
Output
For each case, output A or B according to whose price is closer to the real price.
Sample Input
4
10 8 7
20 20 19
100 9 50
50 39 60
Sample Output
A
A
B
B
HINT
Problem B: Repeat Number
Time Limit:?1 Sec??Memory Limit:?32 MBSubmit:?408??Solved:?42[Submit][Status][Web Board]
Description
Definition: a+b = c, if all the digits of c are same ( c is more than ten),then we call a and b are Repeat Number. My question is How many Repeat Numbers in [x,y].
Input
There are several test cases.
Each test cases contains two integers x, y(1=x=y=1,000,000) described above.
Proceed to the end of file.
Output
For each test output the number of couple of Repeat Number in one line.
Sample Input
1 10
10 12
Sample Output
5
2
HINT
If a equals b, we can call a, b are Repeat Numbers too, and a is the Repeat Numbers for itself.??
Problem C: Base64 Coding
Time Limit:?1 Sec??Memory Limit:?32 MBSubmit:?3??Solved:?1[Submit][Status][Web Board]
Description
??? Base64 is an encoding algorithm. It works by turning characters whose ASCII code is between 0x00 and 0xff into strings of only lower case letters, upper case letters and digits, thus avoiding the encoding ambiguous problem.?Lets take a look at a simple example.??Before transformation:10111010After transformation:0001101100110110??Their v
您可能关注的文档
- 2013浙江衢州初中毕业学业考试物理试卷(解析版).doc
- 2013海淀高一化学期末考试.doc
- 2013深圳中考-化学.doc
- 2013海淀区中考一模成绩对应所在学校.doc
- 2013版七年级上册基础知识复习题.doc
- 2013版人教新目标八年级英语下册单词表.doc
- 2013版保险专业学位研究生培养方案(中国海洋大学)new.doc
- 2013版七年级下册数学期中考试卷.doc
- 2013热点素材一材多解.doc
- 2013版合同示范文本解读.doc
- 20141030 工信部“软件定义”背景下电信核心网的“云化”演进.doc
- 2014NCCN宫颈癌指南路线图翻译.doc
- 2014~2015人教版七年级下数学教学计划.doc
- 2014_年度内部审核计划.doc
- 2014–2015学年第一学期期中初二数学模拟试卷二(含答案).doc
- 2014—2015北京市朝阳区高三一模(生物)(含答案).doc
- 2014~2015高一化学必修一第一次月考测试题附答案.doc
- 2014《成才之路》高一数学(人教A版)必修1:本册综合素能检测【2013年6月出版,收录12-13学年最新资料】 2.doc
- 2014“小桃泳衣”杯中国(葫芦岛兴城)泳装设计大赛.doc
- 2014《成才之路》高一数学(人教A版)必修2能力强化提升:1-3-1-2_柱体、锥体、台体的体积.doc
文档评论(0)