JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Java 程式分享區  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友    訂閱主題
reply to postflat modego to previous topicgo to next topic
本主題所含的標籤
無標籤
作者 [教學]Quiz [精華]
T55555

Java, Ruby, Haskell

版主

發文: 1026
積分: 24
於 2004-02-28 04:26 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
轉自己的貼...
http://www.ownsky.org/cgi-bin/ut/topico_show.cgi?id=64408&h=1#630253

Someone asked me this question:

Given 1, 2, ..., 9 (nine numbers)
How do u fill the numbers and let the equation (see below) equals 1
1
2
3
   X       X       X
 ----- + ----- + -----  =  1
   XX      XX      XX


For example:
1/23 + 4/56 + 7/89 ?= 1

Each number occurs once and only once,
Write a program to solve this.

OK, now write your own java version, do not look my answers yet.
Then compare yours and mine, please post your version if yours is faster (or shorter) than mine.
Post your, if you have an other solution, or you just want to share.
(All are welcome)


caterpillar edited on 2004-03-04 12:30
reply to postreply to post
話題樹型展開
人氣 標題 作者 字數 發文時間
11738 [精華] [教學]Quiz T55555 685 2004-02-28 04:26
10058 Re:Quiz T55555 1969 2004-02-28 04:33
10571 Re:Quiz T55555 2322 2004-02-28 04:41
9932 Re:Quiz sungo 26 2004-02-28 06:05
9968 Re:Quiz T55555 175 2004-02-28 06:14
10038 Re:Quiz sungo 295 2004-02-28 06:25
10943 Re:Quiz worookie 886 2004-02-28 08:36
12479 Re:Quiz jini 938 2004-02-28 12:41
» JWorld@TW »  Java 程式分享區

reply to postflat modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8