由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
BrainTeaser版 - 还是扔鸡蛋,N层楼M个鸡蛋咋办啊
相关主题
[合集] 我来说一个kndle的页面只有一半了
一道算术题,不知道是不是too old.in case you don't want to clean the floor
24点接龙最终结果Questions about laminated flooring
再来一道:小丑逃生(1)Engineered Hardwood Floor
出个题concrete flooring
贡献两个智力题,攒RP ( QUALCOMM)装修材料的选择
Re: 称球zz (转载)Lesson 1: Choosing Between Oak, Walnut, Maple, and Cherry
Re: 还是扔鸡蛋,N层楼M个鸡蛋咋办啊 (转载)问几个房子描述的行话
相关话题的讨论汇总
话题: th话题: 鸡蛋话题: floor话题: 36话题: try
进入BrainTeaser版参与讨论
1 (共1页)
r******m
发帖数: 6
1
两个鸡蛋俺是弄明白了
三个折腾了一会,把自己绕晕了,
这要N个,咋整啊?
h*****0
发帖数: 4889
2
明白三个的,不就已经明白N个的了吗?

【在 r******m 的大作中提到】
: 两个鸡蛋俺是弄明白了
: 三个折腾了一会,把自己绕晕了,
: 这要N个,咋整啊?

p*****k
发帖数: 318
3
it's essentially recursion.
if you post your thoughts on 3 eggs, we might be able to help you:)

【在 r******m 的大作中提到】
: 两个鸡蛋俺是弄明白了
: 三个折腾了一会,把自己绕晕了,
: 这要N个,咋整啊?

h*****0
发帖数: 4889
4
that's right.

【在 p*****k 的大作中提到】
: it's essentially recursion.
: if you post your thoughts on 3 eggs, we might be able to help you:)

h*****0
发帖数: 4889
5
a simple hint:
1+1+1+1+...
1+2+3+4+...
1+3+6+10+...

【在 r******m 的大作中提到】
: 两个鸡蛋俺是弄明白了
: 三个折腾了一会,把自己绕晕了,
: 这要N个,咋整啊?

o****e
发帖数: 80
6
i think for the case of 3 eggs, should be like this
start from n-th floor, then try middle floor of n/2-th , then use the 3rd
egg to try either upper half section
or lower half section,
so for the n-th floor, the max try will be (n+2)/2;
then go to the n-2 th floor, the max try will be n/2
and so on
so the sequence will be like this
n, n-2, n-4, n-6, ......... until 4 th floor,
in total n+(n-2)+(n-4)+...+4=n(n+2)/4-2
if we want to test 100 floors, then n(n+2)/4-2>=100 -----> n=20
so for 100

【在 h*****0 的大作中提到】
: a simple hint:
: 1+1+1+1+...
: 1+2+3+4+...
: 1+3+6+10+...

o*t
发帖数: 655
7
2个鸡蛋怎么了?
f*******y
发帖数: 267
8
hero is right.
m=1: 1+1+1+..
m=2: 1+2+3+..
m=3: 1+3+6+10+...= sum_n n*(n+1)/2
if n=100, the optimal is starting at 8*9/2=36
if x<36, use m=2 method, requires 8 throws; if x>36, throw the third egg at
36+ 7*8/2 = 64 until it breaks.
balancing. not sure if it's correct...

【在 r******m 的大作中提到】
: 两个鸡蛋俺是弄明白了
: 三个折腾了一会,把自己绕晕了,
: 这要N个,咋整啊?

1 (共1页)
进入BrainTeaser版参与讨论
相关主题
问几个房子描述的行话出个题
pooq's DC area contractor list贡献两个智力题,攒RP ( QUALCOMM)
请看这个房子的floor plan,然后帮我看看我们的flooring是否有问题Re: 称球zz (转载)
Cracks on the 2nd floor's floor? Any comments please , Thanks!Re: 还是扔鸡蛋,N层楼M个鸡蛋咋办啊 (转载)
[合集] 我来说一个kndle的页面只有一半了
一道算术题,不知道是不是too old.in case you don't want to clean the floor
24点接龙最终结果Questions about laminated flooring
再来一道:小丑逃生(1)Engineered Hardwood Floor
相关话题的讨论汇总
话题: th话题: 鸡蛋话题: floor话题: 36话题: try