伸縮,伸縮杆var $ranklist_li = $("div.ranklist_model ul li"); $ranklist_li.hover(function () { $(this).addClass("current").siblings().removeClass("current"); var index =
POJ 1887 Testing the CATCHER(LIS的反面 最大遞減子序列),pojlisLanguage:DefaultTesting the CATCHERTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 15207 Accepted: 5595DescriptionA military contractor for the Department of
poj3267--The Cow Lexicon(dp:字串組合),thefatcowThe Cow LexiconTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 8211 Accepted: 3864DescriptionFew know that the cows have their own dictionary with W (1
poj 3026 Borg Maze bfs+最小產生樹,pojborgLanguage:DefaultBorg MazeTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 8829 Accepted: 2954DescriptionThe Borg is an immensely powerful race of enhanced humanoids from the
Period (poj 1961&&hdu 1358)KMP,periodpoj1961Language:DefaultPeriodTime Limit: 3000MS Memory Limit: 30000KTotal Submissions: 13504 Accepted: 6365DescriptionFor each prefix of a given string S with N characters
HDU 5067 Harry And Dig Machine(狀壓dp),hdu5067HDU 5067 Harry And Dig Machine思路:由於點才10個,在加上一個起點,處理出每個點之間的曼哈頓距離,然後用狀壓dp搞,狀態表示為:dp[i][s],表示在i位置,走過的點集合為s的最小代價代碼:#include <cstdio>#include <cstring>#include <cstdlib>#include
poj 2752 Seek the Name, Seek the Fame KMP,poj2752Language:DefaultSeek the Name, Seek the FameTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 12466 Accepted: 6139DescriptionThe little cat is so famous, that