寄托天下
查看: 2278|回复: 4

[问答] 猴哥112第6题 [复制链接]

Rank: 3Rank: 3

声望
88
寄托币
1153
注册时间
2011-7-25
精华
0
帖子
52

寄托与我 寄托16周年纪念勋章

发表于 2011-11-1 19:18:49 |显示全部楼层
The "reflection" of a positive integer is obtained by reversing its digits. For example, 321 is the reflection of 123. The difference between a five-digit integer and its reflection must be divisible by which of the following?

ANSWERS-
2
4
5
6
9<-----Real Answer
May the force be with you.

使用道具 举报

Rank: 3Rank: 3

声望
88
寄托币
1153
注册时间
2011-7-25
精华
0
帖子
52

寄托与我 寄托16周年纪念勋章

发表于 2011-11-1 19:19:55 |显示全部楼层
我做的时候代入了几个数试了三回,基本靠蒙。
后来在urch论坛找到了靠谱答案。
x = a * 10000 + b * 1000 + c * 100 + d * 10 + e
y = e * 10000 + d * 1000 + c * 100 + b * 10 + a

Then y - x is:

y - x = e * 9999 + d * 990 + b * (-990) + a * (-9999)
= 9 [e * 1111 + d * 110 + b * (-110) + a * (-1111)]
May the force be with you.

使用道具 举报

声望
27
寄托币
864
注册时间
2010-3-19
精华
0
帖子
47
发表于 2011-11-1 20:04:20 |显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽

使用道具 举报

Rank: 3Rank: 3

声望
88
寄托币
1153
注册时间
2011-7-25
精华
0
帖子
52

寄托与我 寄托16周年纪念勋章

发表于 2011-11-1 20:07:25 |显示全部楼层
最简单的是10000和1的差9999
palesaint 发表于 2011-11-1 20:04

哇,这一招真好。
May the force be with you.

使用道具 举报

Rank: 2

声望
9
寄托币
363
注册时间
2007-7-29
精华
0
帖子
18
发表于 2011-11-3 09:26:15 |显示全部楼层
最简单的是10000和1的差9999
palesaint 发表于 2011-11-1 20:04

使用道具 举报

RE: 猴哥112第6题 [修改]

问答
Offer
投票
面经
最新
精华
转发
转发该帖子
猴哥112第6题
https://bbs.gter.net/thread-1313989-1-1.html
复制链接
发送
回顶部