作者nukchichi (haha)
看板GRE_Verbal
标题Re: [问题] math
时间Sun Aug 26 20:33:22 2007
这题我查了一下~~机经题目有少给的样子~~
"应该是"这样子~
The reflection of a positive integer is obtained by reversing its digits.For
example,321 is the reflection of 123.The difference of a five-digit number
^^^^^^^^^^^^^^^^^^^
少这个
and its reflection must be divisible by which of the following?
a:2
b:4
c:5
d:6
e:9
这样就能解了~设 abcde 是那五位数 so reflection是 edcba
本来是 10000a+1000b+100c+10d+e
reflectionc後 10000e+1000d+100c+10b+a
相减 ------------------------
得到 9999a+990b+0-990d-9999e====> 9(1111a+110b+0-110d-1111e)
因此不论 abcde为多少 都可被9除掉
有错麻烦订正噜!!!
※ 引述《mabuary (伤兵名单中=.=)》之铭言:
: 先来了个定义,说"reflection"是一个数的全逆序,然後举了个例子
: ,比如"321"是"123"的reflection,问题是问如果有个5位数,
: 它的reflection对于下列哪个数是 divisible的?
: A2 B 4 C 5 D 6 E 9 选E
: 这题有人可以提供算法吗 谢谢
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.122.238.34
1F:推 mabuary:感谢 220.132.91.128 08/26 20:41
2F:推 Rubyfish:嗯! 感谢这位大人 61.62.208.163 08/26 21:42
3F:推 weibo:推+1218.166.209.170 08/26 22:07