posts - 97,  comments - 93,  trackbacks - 0
          10 2007 檔案
          Trace Iamge      摘要: Given a picture composed entirely of horizontal and vertical line segments, calculate the minimum number of times you must lift your pen to trace every line segment in the picture exactly n times.
          Each line segment will be of the form " " (quotes for clarity), representing a segment from (x1,y1) to (x2,y2). Segments may cross each other. Segments may also overlap, in which case you should count the overlapping region as appearing in the drawing only once. For example, say t  閱讀全文
          posted @ 2007-10-30 21:36 wqwqwqwqwq 閱讀(1192) | 評論 (0)  編輯
          Lottery Again      摘要: In most states, gamblers can choose from a wide variety of different lottery games. The rules of a lottery are defined by two integers (choices and blanks) and two boolean variables (sorted and unique). choices represents the highest valid number that you may use on your lottery ticket. (All integers between 1 and choices, inclusive, are valid and can appear on your ticket.) blanks represents the number of spots on your ticket where numbers can be written.  閱讀全文
          posted @ 2007-10-24 21:20 wqwqwqwqwq 閱讀(1210) | 評論 (1)  編輯
          A Q of Encrypting String      摘要:
          Let's say you have a binary string such as the following:
          011100011
          One way to encrypt this string is to add to each digit the sum of its adjacent digits. For example, the above string would become:
          123210122  閱讀全文
          posted @ 2007-10-23 13:34 wqwqwqwqwq 閱讀(1060) | 評論 (1)  編輯
          Maze Problem      摘要: People enjoy mazes, but they also get them dirty. Arrows, graffiti, and chewing gum are just a few of the souvenirs people leave on the walls. You, the maze keeper, are assigned to whiten the maze walls. Each face of the wall requires one liter of paint, but you are only required to paint visible faces. You are given a map of the maze, and you must determine the amount of paint needed for the job.  閱讀全文
          posted @ 2007-10-21 21:28 wqwqwqwqwq 閱讀(1465) | 評論 (1)  編輯
          TopCoder_2      摘要: In written languages, some symbols may appear more often than others. Expected frequency tables have been defined for many languages. For each symbol in a language, a frequency table will contain its expected percentage in a typical passage written in that language. For example, if the symbol "a" has an expected percentage of 5, then 5% of the letters in a typical passage will be "a". If a passage contains 350 letters, then 'a' has an expected count of 17.5 for that passage (17.5 = 350 * 5%). Pl  閱讀全文
          posted @ 2007-10-21 20:14 wqwqwqwqwq 閱讀(923) | 評論 (1)  編輯
          TopCoder_1      摘要: A speed radar is installed in a highway zone where the maximum speed limit is maxLimit mph, and the minimum speed limit is minLimit mph.  閱讀全文
          posted @ 2007-10-20 13:25 wqwqwqwqwq 閱讀(1271) | 評論 (1)  編輯
          Struts Review      摘要: 好長時間沒寫程序了感覺,忘了很多東西,呵呵,今天打開Eclipse寫了一個Struts的小應用,也回顧了一遍它的主要內容,這篇隨筆就把整理的一些東西貼出來吧。  閱讀全文
          posted @ 2007-10-07 16:55 wqwqwqwqwq 閱讀(1036) | 評論 (0)  編輯

          <2007年10月>
          30123456
          78910111213
          14151617181920
          21222324252627
          28293031123
          45678910




          常用鏈接

          留言簿(10)

          隨筆分類(95)

          隨筆檔案(97)

          文章檔案(10)

          相冊

          J2ME技術網站

          java技術相關

          mess

          搜索

          •  

          最新評論

          閱讀排行榜

          校園夢網網絡電話,中國最優秀的網絡電話
          主站蜘蛛池模板: 霍林郭勒市| 岳阳县| 榕江县| 衡东县| 萍乡市| 佛山市| 丽江市| 和林格尔县| 岳阳市| 子洲县| 江阴市| 云和县| 岑溪市| 应用必备| 尚志市| 保定市| 迁安市| 哈巴河县| 准格尔旗| 呼伦贝尔市| 凉城县| 子长县| 那坡县| 岳池县| 永嘉县| 珲春市| 建昌县| 洛扎县| 武平县| 徐水县| 竹溪县| 正蓝旗| 什邡市| 邳州市| 渝北区| 乳源| 正镶白旗| 济源市| 桃园市| 霸州市| 保德县|