创建此算法的块方案 [英] Create the block scheme of this algorithm

查看:68
本文介绍了创建此算法的块方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

找到这个数字范围的总和和乘积:2,4,8,16 ... a)直到数字1000 b)没有结束数字(我不确定这一点是否正确)我解决了一点,但我不知道它是否正确。这是正确的吗?

http:// codegolf.stackexchange.com/questions/50853/create-the-block-scheme-of-this-algorithm [ ^ ]

Find the sum and the product of this range of numbers: 2,4,8, 16... a) till the number 1000 b) no ending number (I'm not sure this point is correct) I solved the a point but I don't know if it is right. Is it correct?
http://codegolf.stackexchange.com/questions/50853/create-the-block-scheme-of-this-algorithm[^]

推荐答案

试一试。

拿出一支铅笔和纸,把结尾的数字想象成5而不是1000以使它具有人类可读性,并使用纸和笔来记录发生的事情。



你得到了正确的结果吗?如果是这样,那么(a)是正确的。

没有(b)......所以这是不对的!
Try it.
Get out a pencil and paper, think of the ending number as 5 instead of 1000 to make it human readable and follow it through, using the paper and pencil to record what happens.

Do you get the right result? If so, then (a) is correct.
There is no (b)...so that isn't right!


这篇关于创建此算法的块方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆