[中譯] Puzzleup 2011 (07) Close and Different

看板puzzle (益智遊戲 - 數獨,拼圖,推理,西洋棋)作者 (-858993460)時間14年前 (2011/09/08 20:42), 編輯推噓7(702)
留言9則, 4人參與, 最新討論串1/1
題目網址: 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. -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.230.62 ※ 編輯: LPH66 來自: 140.112.230.62 (09/08 20:43)

09/08 20:59, , 1F
看到 programUp 整個沒力.....
09/08 20:59, 1F

09/09 03:46, , 2F
用你的例子隨便一試就試出差 0.1111…的答案耶
09/09 03:46, 2F

09/09 04:05, , 3F
又試出一個差到小數點後三位的..我覺得還可以更小
09/09 04:05, 3F

09/09 04:29, , 4F
program up意思是可用程式跑嗎?
09/09 04:29, 4F

09/09 10:51, , 5F
意思是純用人腦算時間 >> 用程式作答時間
09/09 10:51, 5F

09/09 10:52, , 6F
我先用人腦算算看好了 有沒有可能用連分數來做?
09/09 10:52, 6F

09/09 11:05, , 7F
嗯...跟連分數沒關係 先從分子有沒有可能等於1來考慮...
09/09 11:05, 7F

09/09 11:11, , 8F
好像不可能是1 那麼6呢...
09/09 11:11, 8F

09/09 11:26, , 9F
看似沒有人腦是用的好解法 -.- 不算了
09/09 11:26, 9F
文章代碼(AID): #1EQBWUMQ (puzzle)
文章代碼(AID): #1EQBWUMQ (puzzle)