摘要: 文本串中出现次数最多的模式串 //LA4670, 洛谷3796 %:pragma GCC optimize("Ofast", 2) #include <queue> #include <stdio.h> #include <stdlib.h> #include <string.h> #include 阅读全文
posted @ 2020-02-16 23:00 傲-寒 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 链接:https://ac.nowcoder.com/acm/contest/3002/G来源:牛客网eli拿到了一个仅由小写字母组成的字符串。她想截取一段连续子串,这个子串包含至少 个相同的某个字母。她想知道,子串的长度最小值是多少?注:所谓连续子串,指字符串删除头部和尾部的部分字符(也可以不删除 阅读全文
posted @ 2020-02-16 22:54 傲-寒 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://acm.zcmu.edu.cn/JudgeOnline/problem.php?id=5073 n个正方形,给出每个正方形中心及半径,m次修改(中心与半径)与查询(最近距离),由于给出的区域为x[0,10],y[0,10],直接暴力区间查询即可,注意若为0则直接跳出,否则会 阅读全文
posted @ 2020-02-16 22:48 傲-寒 阅读(144) 评论(0) 推荐(0) 编辑