Whereas we all know that the universe is of a certain kind-- -- we can't even call it Copernican anymore-- poetry has this odd preference for Ptolemaic astronomy.
虽然我们都知道宇宙是怎样的-,现在即使哥白尼的理论也不完全正确了-,但是诗歌偏爱托勒密的宇宙观。
So even though we might have started with 500 some odd people, it very quickly became a 250 person problem and then a 125 person problem.
尽管刚开始的时候,人数是500左右,很快就变成了一个250人的问题,再变成125人的问题。
Because if b was odd, then b minus one is even which means on the next step, I can cut the problem in half again.
这意味着我在下一步里解决的问题,规模要小了一半,好,课堂材料的第三题。
It's not as though, oh, today is odd but maybe tomorrow it will be even.
并不是说,哦,今天它是奇数,也许明天就是偶数了。
In the Mesopotamian account, the gods themselves are created ; And they're not even created first, actually; The first generation of beings creates these odd demons and monsters, And gods only are created after several generations Marduk And the god of creation, Marduk, Is actually kind of a latecomer in the picture.
在美索不达米亚的描述中,众神本身也是被创造的,而事实上,他们还不是最先被创造出来的;,是最早的存在创造了那些恶魔和怪兽,而众神是在好几代之后才被创造的,而有创造能力的神是,他在创世的图景中是姗姗来迟的。
I think it depends on whether the list is odd or even in length. Actually, that's probably not true. With one, it'll probably always get it down there, but if I've made it just equal to two I might have lost.
是奇数还是偶数,事实上,这是不正确的,如果最后剩下一个,那可能得到了结果,如果剩下两个,可能错了,所以,首先我们要格外。
In either case, I take that value and multiply back by two, if it was even I get back the original number, if it was odd, I'm not going to get back the original number, so I can just check to see if they're the same.
在两种情况中,我都把结果值,再乘以2,如果x是偶数我就,得到了原来的值,如果x是奇数那么就不会得到,原来的值,因此我看看得到的值,和原来的值相等不相等就可以了。
Remember last time, we wrote this simple piece of code to print out even or odd. If, you know, x, 1 it was in fact, even or odd. So let me show you what a flow chart for that would look like, because I want to make a comparison point here.
这就像这里有一些脚蹼一样,首先进行测试,然后把球这样放来让ANS加,然后回来继续测试,最终跳出循环然后打印答案。
And in the even case, I'd square, divide by half, call this again: in the odd case, I go b minus 1 and then multiply by a.
就直接求a的平方的二分之b次方,如果是奇数的话,就去求a的b-1次方乘以a,以此递归下去。
It's going to print out even or odd, depending on whether the value I put in, which is x in this case, is even or odd.
它会打印奇数或者偶数,这取决于我输入的值,也就是这个例子中的x,是奇数还是偶数。
Remember last time, we wrote this simple piece of code to print out even or odd. If, you know, x, it was in fact, even or odd. So let me show you what a flow chart for that would look like, because I want to make a comparison point here.
记得上节课我们写过的,那个显示奇数还是偶数的程序么,如果,你知道,x,实际上是奇数还是偶数,那么让我来为大家画个这个程序的流程图吧,因为我这里想为大家做个比较。
应用推荐