根本用不着倒过来算。以前的帖子里面讨论的方法都是错误的。
每次把最大的两个数拿出来做一次运算,这样得到的最后结果是最大的。
所有跟帖:
•
不神秘,你算一次,看看结果是多少。答案和我一样吗?
-rapidestate-
♂
(0 bytes)
()
01/08/2019 postreply
11:48:15
•
你的program不简洁
-哲仁布措-
♂
(81 bytes)
()
01/08/2019 postreply
12:00:40
•
you don't know what you talking about, there is no difference
-rapidestate-
♂
(256 bytes)
()
01/08/2019 postreply
12:54:04
•
Could be 12 lines of code
-rapidestate-
♂
(416 bytes)
()
01/08/2019 postreply
13:06:03