摘要: Destroy Transportation system Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 900 Accepted Subm 阅读全文
posted @ 2020-04-27 21:08 傲-寒 阅读(114) 评论(0) 推荐(0) 编辑
摘要: Stupid Tower Defense Time Limit: 12000/6000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 2504 Accepted Submission( 阅读全文
posted @ 2020-04-27 16:51 傲-寒 阅读(74) 评论(0) 推荐(0) 编辑
摘要: Miaomiao's Geometry Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 2569 Accepted Submission(s): 阅读全文
posted @ 2020-04-22 16:48 傲-寒 阅读(147) 评论(1) 推荐(0) 编辑
摘要: Paths on the treeProblem Descriptionbobo has a tree, whose vertices are conveniently labeled by 1,2,…,n.** There are m paths on the tree. bobo would l 阅读全文
posted @ 2020-04-19 16:58 傲-寒 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 文本串中出现次数最多的模式串 //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) 编辑
摘要: 1.欧几里得 gcd(a, b) = gcd(b, a%b) int gcd(int a, int b){ return b == 0 ? a : gcd(b, a%b); } 2.欧几里得扩展 参考:https://www.cnblogs.com/Aiahtwo/p/10894280.html 求 阅读全文
posted @ 2019-12-12 20:26 傲-寒 阅读(251) 评论(0) 推荐(0) 编辑