原创 acm pku 1299 Polar Exploer的簡單實現

Polar Explorer Description You are a intrepid 2-dimensional explorer located at the northern polar reaches of a distant

原创 acm pku 1287 Networking的Prim最小生成樹算法實現

Networking Description You are assigned to design network connections between certain points in a wide area. You are gi

原创 acm pku 1243 One person的邏輯推理

One Person Description In the game show "The Price is Right", a number of players (typically 4) compete to get on stage

原创 acm pku 1298 The hardest problem ever的實現

The Hardest Problem Ever Description Julius Caesar lived in a time of danger and intrigue. The hardest situation Caesar

原创 acm pku 1207 The 3n+1的算法分析與實現

The 3n + 1 problem Description Problems in Computer Science are often classified as belonging to a certain class of pro

原创 acm pku 1230Pass-Muraille的貪婪算法實現

Pass-Muraille Description In modern day magic shows, passing through walls is very popular in which a magician performe

原创 令人迷茫的QT程序錯誤

  令人迷茫的QT程序錯誤   作者剛接觸QT一月左右,接手一位剛離職的同事的事務,主要是一個在Linux環境下,用QT寫的某型記錄儀的管理軟件,當然了這位同事走的時候這項任務還沒有完全做完。我的任務就是讀代碼,並按照設計需求在適當的地方

原创 acm pku 1258 Agri-Net的Prim算法實現

Agri-Net Description Farmer John has been elected mayor of his town! One of his campaign promises was to bring internet

原创 放牛班的春天

好久沒有看電影了,特別是那種充滿溫情,洋溢着人文關懷的電影,甚至都已經忘了電影本身所被賦予的娛樂性和教育性。 隨便在網絡上搜索了一下法國的電影,不經意間看到了《放牛班的春天》(Les Choristes

原创 acm pku 1247 Magnificent Meatballs的算法實現

Magnificent Meatballs Description Sam and Ella run a catering service. They like to put on a show when serving meatball

原创 acm pku 1226 Substring的算法分析與實現

Substrings Description You are given a number of case-sensitive strings of alphabetic characters, find the largest stri

原创 acm pku 1222 Extended lights out的算法分析

EXTENDED LIGHTS OUT Description In an extended version of the game Lights Out, is a puzzle with 5 rows of 6 buttons eac

原创 acm pku 1183 反正切函數的應用

反正切函數的應用 Description 反正切函數可展開成無窮級數,有如下公式 (其中0 <= x <= 1) 公式(1) 使用反正切函數計算PI是一種常用的方法。例如,最簡單的計算PI的方法: PI=4arctan(1)=4(1-1/

原创 acm pku 1251 Jungle Roads的算法分析與實現

Jungle Roads Description The Head Elder of the tropical island of Lagrishan has a problem. A burst of foreign aid mone

原创 acm pku 1260 Pearls的動態規劃算法實現

Pearls Description In Pearlania everybody is fond of pearls. One company, called The Royal Pearl, produces a lot of jew