摘要: /* 开始想耍小聪明 直接map搞 代码短 好理解 空间够 恩 很好 就是 map慢死了 T了 */ #include #include #include #include using namespace std; int n,m,ans; string s,si; mapt; int main() { cin>>n; while(n--) { ... 阅读全文
posted @ 2016-07-11 15:02 一入OI深似海 阅读(144) 评论(0) 推荐(0) 编辑
摘要: /* 这题倒是没啥难度 字典树可搞 但是吧 空间是个问题 开始写成这样 struct node { int next[27],sum[27]; bool over; }t[maxn]; 死活过不了 开小了er 开大了MLE 问了问wmy 很机智的说用map 管用的 然后卡空间过了 看他们用指针动态分配内存 然而我并不太会..... */ #include #inclu... 阅读全文
posted @ 2016-07-11 10:44 一入OI深似海 阅读(180) 评论(0) 推荐(0) 编辑