摘要:
简单写一下吧 emmmm,来晚了1h,没赶上,所以没交.......(捂脸 T1 开始读错题了诶 开烤1.2h后 发现是个傻逼题.... 排序一下,维护前缀最左,右端点 随机数据我跑的比他们都慢.......... c++ include include define LL long long co 阅读全文
摘要:
题目链接 "bzoj1491: [NOI2007]社交网络" 题解 n^3枚举一下就没了... 代码 c++ include include include inline int read() { int x = 0,f = 1 ; char c = getchar(); while(c '9')c 阅读全文
摘要:
题目链接 "CF915E Physical Education Lessons" 题解 动态开点线段树 代码 c++ / 动态开点线段树 / include include include inline int read() { int x = 0,f = 1; char c = getchar() 阅读全文
摘要:
题目链接 "51nod 1277 字符串中的最大值" 题解 对于单串,考虑多串的fail树,发现next数组的关系形成树形结构 建出next树,对于每一个前缀,他出现的次数就是他子树的大小 代码 c++ include include include inline int read() { int 阅读全文