回复:Set S has 51 positive but <=100 ints, show exists x1+x2=101.

来源: yma16 2007-07-01 09:54:53 [] [旧帖] [给我悄悄话] 本文已被阅读: 0 次 (323 bytes)
Use PHP.

Label the 50 holes as (1,100), (2,99),...(50,51). Each hole can hold one or two numbers and the number has to match the label. For example, 1 and/or 100 can only go to the 1st hole. Now put the 51 numbers into these holes. There must be one hole to get two numbers. These two numbers will add up to 101.

所有跟帖: 

nice ! -emlx- 给 emlx 发送悄悄话 (0 bytes) () 07/01/2007 postreply 16:49:43

请您先登陆,再发跟帖!

发现Adblock插件

如要继续浏览
请支持本站 请务必在本站关闭/移除任何Adblock

关闭Adblock后 请点击

请参考如何关闭Adblock/Adblock plus

安装Adblock plus用户请点击浏览器图标
选择“Disable on www.wenxuecity.com”

安装Adblock用户请点击图标
选择“don't run on pages on this domain”