Re: [問題] math
這題我查了一下~~機經題目有少給的樣子~~
"應該是"這樣子~
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
推
08/26 20:41, , 1F
08/26 20:41, 1F
推
08/26 21:42, , 2F
08/26 21:42, 2F
推
08/26 22:07, , 3F
08/26 22:07, 3F
討論串 (同標題文章)