- 1、本文档共19页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
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
- 《GB/T 32151.42-2024温室气体排放核算与报告要求 第42部分:铜冶炼企业》.pdf
- GB/T 32151.42-2024温室气体排放核算与报告要求 第42部分:铜冶炼企业.pdf
- GB/T 38048.6-2024表面清洁器具 第6部分:家用和类似用途湿式硬地面清洁器具 性能测试方法.pdf
- 中国国家标准 GB/T 38048.6-2024表面清洁器具 第6部分:家用和类似用途湿式硬地面清洁器具 性能测试方法.pdf
- 《GB/T 38048.6-2024表面清洁器具 第6部分:家用和类似用途湿式硬地面清洁器具 性能测试方法》.pdf
- 《GB/T 18238.2-2024网络安全技术 杂凑函数 第2部分:采用分组密码的杂凑函数》.pdf
- GB/T 18238.2-2024网络安全技术 杂凑函数 第2部分:采用分组密码的杂凑函数.pdf
- 《GB/T 17215.686-2024电测量数据交换 DLMS/COSEM组件 第86部分:社区网络高速PLCISO/IEC 12139-1配置》.pdf
- GB/T 13542.4-2024电气绝缘用薄膜 第4部分:聚酯薄膜.pdf
- 《GB/T 13542.4-2024电气绝缘用薄膜 第4部分:聚酯薄膜》.pdf
文档评论(0)