标题: 鼠穴机经 [打印本页] 作者: mirandachen 时间: 2012-1-13 02:05 标题: 鼠穴机经 数学记得一道-100除以30余几,答案有0,10,-10。。。答案-10作者: dajdaj 时间: 2012-1-13 02:07
余数没有负数吧作者: justabeginning 时间: 2012-1-13 02:27
The case of general integers
If a and d are integers, with d non-zero, then a remainder is an integer r such that a = qd + r for some integer q, and with 0 ≤ |r| < |d|.
When defined this way, there are two possible remainders. For example, the division of ?42 by ?5 can be expressed as either ?42 = 9×(?5) + 3 as is usual for mathematicians,[citation needed] or ?42 = 8×(?5) + (?2). So the remainder is then either 3 or ?2.
This ambiguity in the value of the remainder can be quite serious computationally; for mission critical computing systems, the wrong choice can lead to dangerous consequences. In the case above, the negative remainder is obtained from the positive one just by subtracting 5, which is d. This holds in general. When dividing by d, if the positive remainder is r1, and the negative one is r2, then r1 = r2 + d. ----------------------from wikipedia作者: gentlemoon 时间: 2012-1-13 04:30
楼主,这道题我做了,答案应该是20作者: anjjule 时间: 2012-1-13 14:01
楼上你是怎么算的? 我算出来也是-10