0%

Problem 732


Problem 732


Standing on the shoulders of trolls

N trolls are in a hole that is DN cm deep. The n-th troll is characterized by:

  • the distance from his feet to his shoulders in cm, hn
  • the length of his arms in cm, ln
  • his IQ (Irascibility Quotient), qn.

Trolls can pile up on top of each other, with each troll standing on the shoulders of the one below him. A troll can climb out of the hole and escape if his hands can reach to the surface. Once a troll escapes he cannot participate any further in the escaping effort.

The trolls execute an optimal strategy for maximizing the total IQ of the escaping trolls, defined as Q(N).

Let
rn=[(5nmod(109+7))mod101]+50
hn=r3n
ln=r3n+1
qn=r3n+2
DN=12n=0N1hn.

For example, the first troll (n=0) is 51cm tall to his shoulders, has 55cm long arms, and has an IQ of 75.

You are given that Q(5)=401 and Q(15)=941.

Find Q(1000).


站在巨魔的肩膀上

N只巨魔(编号为0N1)掉进了深度为DN厘米的洞中,其中编号为n的巨魔有三项特征:

  • 他的肩高为hn厘米;
  • 他的臂长为ln厘米;
  • 他的怒商(怒气商数,简称IQ)为qn

巨魔们可以通过站在别的巨魔的肩膀上来搭起人梯,只要人梯最上方的巨魔的手臂能够够到地表,这只巨魔就能逃生。已经逃生的巨魔不能回洞中继续帮助其他巨魔逃生。

假设巨魔采用了能够使得所有逃出巨魔的IQ之和最高的策略,并记该策略下IQ之和为Q(N)


rn=[(5nmod(109+7))mod101]+50
hn=r3n
ln=r3n+1
qn=r3n+2
DN=12n=0N1hn.

例如,第一只(编号为n=0)巨魔的肩高为51厘米,臂长为55厘米,IQ为75

已知Q(5)=401Q(15)=941

Q(1000)


Gitalking ...