1. 1、本文档共19页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 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 MB Submit:?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 MB Submit:?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 MB Submit:?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:10111010 After transformation:0001101100110110? ? Their v

您可能关注的文档

文档评论(0)

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

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

1亿VIP精品文档

相关文档