首先通过hash建树 设f[i][j]表示第i个特殊符号从P的第j位开始匹配能到达哪里 记忆化搜索,对于底层贪心匹配. #include<cstdio> #include<cstring> using std::strlen; const int N=510,M=2010; char a[10],tmp[10],b[N][10],s[M]; int T,n,m,i,j,k,h[N],son[N][2],len[N],f[N][M]; inline int hash(char a[]…
Search GO 说明:输入题号直接进入相应题目,如需搜索含数字的题目,请在关键词前加单引号 Problem ID Title Source AC Submit Y 1000 A+B Problem 10983 18765 Y 1036 [ZJOI2008]树的统计Count 5293 13132 Y 1588 [HNOI2002]营业额统计 5056 13607 1001 [BeiJing2006]狼抓兔子 4526 18386 Y 2002 [Hnoi2010]Bounce 弹飞绵羊 43…
要back的题目 目标是全绿!back一题删一题! acmm7 1003 1004 acmm8 1003 1004 sysu20181013 Stat Origin Title Solved A Gym 100624A Kingdoms B Gym 100624B Who wants to live forever? Solved C Gym 100624C Chemist's vows D Gym 100624D Non-boring sequences Attempted E Gym…