題目連結:UVA: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=1223poj: http://poj.org/problem?id=2503類型: 雜湊表原題:You have just moved from Waterloo to a big city. The people
題目連結:UVa: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=1332zoj : http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=825類型: Hash原題:You are to find all the two-word
題目連結:UVa : http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=1066poj : http://poj.org/problem?id=2549類型: 雜湊, 二分尋找原題:Given S, a set of integers, find the largest d such that a
連結:UVa : http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=1828類型: 雜湊表原題:A language is a set of strings. And the concatenation of two languages is the set of all strings that
題目連結:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=1532類型: 雜湊表原題:Let the sum of the square of the digits of a positive integer S0 be represented by S1. In a similar way,
連結:http://codeforces.com/problemset/problem/149/E題目大意:給出字串S, 然後再給m個字串T,判斷有幾個T是可以在S中找到座標a, b, c, d, (1 ≤ a ≤ b < c ≤ d ≤ n),使得S【a...b】+S【c...d】 = T.分析與總結:先找T的首碼,要找所有長度的首碼的最後一個字母在S中第一次出現的位置,這個過程只需要進行一次KMP運算便可以儲存下來。然後就是把尋找尾碼,把S和T都逆序存好,再進行一次KMP運算找尾碼,
題目連結:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=124類型: 雜湊原題:Perfect Software, Inc. has obtained a government contract to examine text flowing through a high-speed
題目連結:UVa : http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=2498HDU: http://acm.hdu.edu.cn/showproblem.php?pid=3172類型: 並查集, 雜湊原題:These days, you can do all sorts of things