Loading

摘要: H - String and Times 询问子串出现次数范围在 \([A,B]\) 内的子串个数 用 \(SAM\) 很简单做,毒瘤题目没有说单组数据多大,就给了个 \(\sum|S| \le 2e6\) 图中的 last 集合就是每次的 last 在求 endpos 的时候按照 len 排序就是 阅读全文
posted @ 2020-11-26 19:18 —O0oO- 阅读(92) 评论(0) 推荐(0) 编辑
摘要: J - Participate in E-sports \(python\) 真牛 ''' Author: zhl Date: 2020-11-25 17:19:51 ''' from math import * from decimal import * getcontext().prec= 30 阅读全文
posted @ 2020-11-26 15:22 —O0oO- 阅读(110) 评论(0) 推荐(0) 编辑