And it's just gathering together the multiplications while counting down the exponent. And you can see it when we get down to the end test here, we're going to pop out of there and we're going to return the answer.
这个方法就是通过乘法,来一个一个的减小指数,可以看到,最后面的结果测试,我们会在这里退出,然后返回答案。
Which means, next time through the loop, that's going to pop out and return an answer.
循环会跳出并返回这个答案,如果不相等的话。
So in the case of 12 32, that is our highest kinetic energy, it's the smallest amount of energy it takes to pop an electron out of that orbital.
因此,1232是我们能够得到的,最高的动能,它是从这个轨道中,打出一个电子需要消耗的最低能量。
And the trick to a puzzle box is there's a simple way to get out but you have to kind of pull on something, some special lever, to make it pop open.
这个谜笼的设计是这样的,只要小猫拉动一个东西,它就能够逃出去,拉动一个特殊的杠杆,迷笼就会打开。
b times. So I've got to go 3 b steps. All right I've got to go through the loop b times I've got three steps each time, and then when I pop out of the loop, I've got two more steps. All right I've got the initiation of answer and the return of it.
好,我一共执行了b次循环,每次循环内部进行了三次基本操作,当跳出循环后还有两个基本操作,因此这个初始的答案就是,2+3b次基本操作,来完成这个循环。
应用推荐