Puzzleup 2011 (07) Close and Different - 拼圖

Table of Contents


題目網址: www.puzzleup.com/2011/puzzle/?225
加分時限: 9/8 7PM - 9/13 7PM

答對可得基本分100分。答案可上傳5次,每改1次答案從基本分扣20分。 
比賽期間內可隨時上傳答案,加分時限內答對第n天加(6-n)分       
另依題目的難易有額外加分(如有80%的人這題答錯,答對者加80分)  

◆Close and Different

Use all the nine numerals from 1 to 9 once and form four numbers (A, B, C, D)
such that divisions A/B and C/D produce different but closest results. (ie.
Absolute value of A/B-C/D should be minimum.)

Please enter the four numbers from the smallest to the largest, with commas
between them.

Example: If the numbers were 12/789, 6/345, your answer should read
6,12,345,789

使用全部 1 到 9 的阿拉伯數字各一次形成四個數 A,B,C,D 使得 A/B 和 C/D 得到不同
但最接近的答案。(即 A/B-C/D 的絕對值要最小且非零。)

答案格式為四個數字由小排到大,以逗號分隔。

例如若答案是 12/789、6/345 的話,則輸入 6,12,345,789。

--
programUp 開始了 (無誤

另外「且非零」三個字是我補上去的

(其實很容易湊出相減是 0 的答案 像是 9/273-18/546 等等

但題意顯然是要我們找非零的差值)

--
LPH [acronym]
= Let Program Heal us
-- New Uncyclopedian Dictionary, Minmei Publishing Co.

--

All Comments

Sandy avatarSandy2011-09-09
看到 programUp 整個沒力.....
Carolina Franco avatarCarolina Franco2011-09-09
用你的例子隨便一試就試出差 0.1111…的答案耶
Ingrid avatarIngrid2011-09-14
又試出一個差到小數點後三位的..我覺得還可以更小
Quintina avatarQuintina2011-09-15
program up意思是可用程式跑嗎?
Michael avatarMichael2011-09-16
意思是純用人腦算時間 >> 用程式作答時間
Kelly avatarKelly2011-09-19
我先用人腦算算看好了 有沒有可能用連分數來做?
Kumar avatarKumar2011-09-21
嗯...跟連分數沒關係 先從分子有沒有可能等於1來考慮...
John avatarJohn2011-09-24
好像不可能是1 那麼6呢...
Candice avatarCandice2011-09-28
看似沒有人腦是用的好解法 -.- 不算了