Clock Grid
There is a grid of length and width points. A clock is placed on each grid point. The clocks are all analogue showing a single hour hand initially pointing at .
A sequence is created where:
The four numbers represent a range within the grid, with the first pair of numbers representing the x-bounds and the second pair representing the y-bounds. For example, if , the range would be and , and would include clocks.
For each , the clocks within the range represented by are moved to the next hour .
We define to be the sum of the hours that the clock hands are pointing to after timestep .
You are given , , and .
Find .
时钟格阵
考虑一个长和宽均包含个点的格阵,每个格点上都放置有一台时钟。所有的时钟盘面上都只包含一根时针,且在开始时时针均指向。
序列按如下方式定义:
四个数代表了格阵的一部分,其中第一对数表示横轴的范围,第二对数表示纵轴的范围。例如,若,相应的格阵范围满足和,其中包含个时钟。
对于每个 ,包含在上述由描述的格阵范围内的所有时钟均往后拨一小时,也即。
记为经过第步后,所有时钟时针所指向的数之和。
已知,,,。
求。
Be the first person to leave a comment!