Puzzleup 2013 (4) Four Digits - 拼圖

Table of Contents

題目網址: http://www.puzzleup.com/2013/
http://www.puzzleup.com/2013/puzzle/?245
答題時限: 8月15日7PM-比賽結束(約12月11日)
加分時限: 8月15日7PM-8月19日6:59PM

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

◆Four Digits

You have a number where any digit appears at most twice. The sum of all
neighboring four digits in this number is a square number.

What is the maximum possible value for this number?

Example: 205290 is such a number because no digit appears more than twice and
2+0+5+2, 0+5+2+9, and 5+2+9+0 are square numbers.


有一個數字滿足下列兩個條件:

(1) 0-9最多都只能出現兩次
(2) 任意相鄰的四個數字和都必須是平方數

請問這個數的最大可能值是多少?

例如:205290符合上述條件,因為0-9都沒有被使用超過兩次。

而且 2+0+5+2, 0+5+2+9, 5+2+9+0 都是平方數

--

All Comments

Callum avatarCallum2013-08-19
先想好答案是幾位數是重點 不過想好後為了確認沒漏掉
Rae avatarRae2013-08-20
我還是不爭氣的寫了程式...(遮臉)
Elizabeth avatarElizabeth2013-08-23
唔...還好有寫程式 居然又想錯了