原创 1995猜數遊戲

猜數遊戲 Time Limit: 1 Seconds     Memory Limit: 32768 K Total Submit:70     Accepted:11 Description 我們經常看到這樣的遊戲,機器

原创 fjnu最大區間問題

最大區間問題 Time Limit: 1 Seconds     Memory Limit: 32768 K Total Submit:70     Accepted:12 Description 給你兩個數N,M。(1

原创 fjnu Raiders of the Lost Ark

Raiders of the Lost Ark Time Limit: 1 Seconds     Memory Limit: 32768 K Total Submit:535     Accepted:230 Descrip

原创 1501 Combination Lock

Combination Lock Time Limit: 1 Seconds     Memory Limit: 65535 K Total Submit:72     Accepted:46 Description No

原创 1301輸出三角形的字符

輸出三角形的字符 Time Limit: 1 Seconds     Memory Limit: 32768 K Total Submit:408     Accepted:266 Description 用英文大寫字母排

原创 1713最長同號連續段

最長同號連續段 Time Limit: 1 Seconds     Memory Limit: 32768 K Total Submit:447     Accepted:179 Description 給出一個由非0整數

原创 1996

最大區間問題 Time Limit: 1 Seconds     Memory Limit: 32768 K Total Submit:70     Accepted:12 Description 給你兩個數N,M。(1

原创 1305 核電站問題

核電站問題 Time Limit: 1 Seconds     Memory Limit: 32768 K Total Submit:510     Accepted:112 Description 一個核電站有N個放核物

原创 1. 廣告排名區間 (10分)

1. 廣告排名區間 (10分) 問題背景 shifen廣告消費預估系統可以估計出一段時間內一個特定的廣告在檢索結果中排在各個位置的機率。比如系統對某廣告的輸出如下: p1 = 0.03, p2 = 0.08, p3 = 0.04 ……這說

原创 1992 裝木塊問題

裝木塊問題 Time Limit: 1 Seconds     Memory Limit: 32768 K Total Submit:79     Accepted:7 Description 有一種很特別裝箱子,箱子的所

原创 圓桌喫飯問題

  【例2】圓桌喫飯問題 n個人圍着一張圓桌喫飯,每個人都不願意兩天與同一人爲鄰,問最多能坐多少天,並給出一種排列方案?     爲了清楚的理解問題的

原创 小丁的試驗

小丁的試驗 Time Limit: 1 Seconds     Memory Limit: 32768 K Total Submit:179     Accepted:51 Description Description

原创 百度之星astar2008程序設計大賽預賽2

                             百度之星astar2008程序設計大賽預賽2 點擊數:1    發佈日期:2008-6-1 18:22:00  【收藏】 【評論】 【打印】 【編程愛好者論壇】 【關閉】 Tag:

原创 3. 釘子與木板 (30分)

3. 釘子與木板 (30分) 問題背景 牆上有n個釘子,編號爲1, 2, ..., n。其中釘子i的橫座標爲i,縱座標初始爲xi。可以進行兩種操作:0 k v:移動操作。豎直移動釘子k,座標變爲(k, v)。1 s t v:測試操作。若在

原创 2. LZW網頁判重 (20分)

2. LZW網頁判重 (20分) 問題背景 有一種簡單的網頁判重的方法,通過求兩個網頁內容的最長公共子序列(LCS)長度來判定兩個網頁的相似程度。如:(網頁A)老師:請用“果然”造句。(網頁B)學生:先吃水果,然後喝汽水……它們的最長公共