英语翻译
and movement has long been used to measure time.For example,the ball clock is a simple device which keeps track of the passing minutes by moving ball-bearings.Each minute,a rotating arm removes a ball bearing from the queue at the bottom,raises it to the top of the clock and deposits it on a track leading to indicators displaying minutes,five-minutes and hours.These indicators display the time between 1:00 and 12:59,but without 'a.m.' or 'p.m.' indicators.Thus 2 balls in the minute indicator,6 balls in the five-minute indicator and 5 balls in the hour indicator displays the time 5:32.
Unfortunately,most commercially available ball clocks do not incorporate a date indication,although this would be simple to do with the addition of further carry and indicator tracks.However,all is not lost!As the balls migrate through the mechanism of the clock,they change their relative ordering in a predictable way.Careful study of these orderings will therefore yield the time elapsed since the clock had some specific ordering.The length of time which can be measured is limited because the orderings of the balls eventually begin to repeat.Your program must compute the time before repetition,which varies according to the total number of balls present.
Operation of the Ball Clock
Every minute,the least recently used ball is removed from the queue of balls at the bottom of the clock,elevated,then deposited on the minute indicator track,which is able to hold four balls.When a fifth ball rolls on to the minute indicator track,its weight causes the track to tilt.The four balls already on the track run back down to join the queue of balls waiting at the bottom in reverse order of their original addition to the minutes track.The fifth ball,which caused the tilt,rolls on down to the five-minute indicator track.This track holds eleven balls.The twelfth ball carried over from the minutes causes the five-minute track to tilt,returning the eleven balls to the queue,again in reverse order of their addition.The twelfth ball rolls down to the hour indicator.The hour indicator also holds eleven balls,but has one extra fixed ball which is always present so that counting the balls in the hour indicator will yield an hour in the range one to twelve.The twelfth ball carried over from the five-minute indicator causes the hour indicator to tilt,returning the eleven free balls to the queue,in reverse order,before the twelfth ball itself also returns to the queue
人气:188 ℃ 时间:2020-05-11 22:32:14
解答
和运动一直被用来测量时间.例如,球时钟是一个简单的装置,通过不断的移动分球轴承的轨道.每分钟,旋转手臂去除底部的队列一球轴承,提出了一条通往该指标显示分钟,5分钟和小时跟踪它的时钟和存款它的顶部.这些指标显示1...
推荐
猜你喜欢
- 汤姆索亚为什么会产生当“海盗”的心理?
- 甲乙两人从同一起跑线上绕300米环形跑道上跑步,甲每秒跑6米,乙每秒跑4米,甲第二次追上乙的时,
- 英语翻译成中文 Zhang Shan feels that even her waist is going to be snapped.
- 求Whether he comes or not,fine by me.翻译,
- 已知5x+3y=A ,x+4y=B ,A 、B 为常数,求3x+4y
- 我校八年级(3)班期末语文、数学、英语的考试成绩依次比期中提高了10%,15%,5%.现要计算这三科总的提高水平,高同学用两种方法计算平均数,你知道怎样计算?两种结果,哪种能较好
- 数列题:2, 2 ,6, 22 ? 第五个数字是几?
- 英语翻译