2010-12-06から1日間の記事一覧
http://rose.u-aizu.ac.jp/onlinejudge/ProblemSet/description.jsp?id=0538 Boyer-Mooreのアルゴリズムを用いて数え上げ。 規則性を使えばもっと早くなりそうだけど…。 #include <cstring> #include<cstdio> using namespace std; char strs[1000002]; char mkh[1000002]; in</cstdio></cstring>…