摘要: 正文索引一、KMP介绍二、例子:子串匹配母串... 阅读全文
posted @ 2019-10-05 20:08 月光不染是非 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 主要实现思想参考与王红梅、胡明、王涛编著的《... 阅读全文
posted @ 2019-09-24 10:35 月光不染是非 阅读(283) 评论(0) 推荐(0) 编辑
摘要: Table of ContentsA – Alchemist题目大意:解题思路:通过代码:B – Build Stairs题目大意解题思路:解题代码:C – One Clue题目大意:解题思路:解题代码D –... 阅读全文
posted @ 2019-09-23 15:15 月光不染是非 阅读(99) 评论(0) 推荐(0) 编辑
摘要: Table of ContentsA. Prefixes题目链接:https://codeforces.com/contest/1216/problem/A题目大意:解题思路:A. Prefixes题目链接:... 阅读全文
posted @ 2019-09-22 15:50 月光不染是非 阅读(86) 评论(0) 推荐(0) 编辑
摘要: #include #define REP(i, a, b) for(int i = a; i class LinkList;templateclass node { public: //对结点进行初始化 ... 阅读全文
posted @ 2019-09-16 01:13 月光不染是非 阅读(278) 评论(0) 推荐(0) 编辑
摘要: Table of Contents1 第一个java程序,输出hello world2 第二个java程序,输入a与b的值,然后输出 a+b3 java当中的if语句4 样例15 java同样支持三元运算符6... 阅读全文
posted @ 2019-09-03 02:44 月光不染是非 阅读(122) 评论(0) 推荐(0) 编辑
摘要: Table of Contents题目大意:已知公式 k^n =p, 输入 n 与 p 求解 k 的值并输出解题思路:k = p ^ (1/n), 注意数据范围即可DescriptionCurrent wor... 阅读全文
posted @ 2019-08-19 04:09 月光不染是非 阅读(129) 评论(0) 推荐(0) 编辑
摘要: Table of ContentsInputOutputSample InputSample Output传送门: http://acm.zju.edu.cn/onlinejudge/showProblem.... 阅读全文
posted @ 2019-05-26 12:22 月光不染是非 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Table of Contents输入格式输出格式数据规模样例输入复制样例输出复制北京市商汤科技开发有限公司面向青少年研发了一款智能伴游机器人– AI 伴游小精灵。一经推出,深受孩子们的喜爱,可爱又机智的小精... 阅读全文
posted @ 2019-05-26 06:56 月光不染是非 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 分而治之:分区间计算每个区间的最大和#include #define REP(i, a, b) for(int i = a; i > 1; int left_sum = -0x3f3f3f3f;... 阅读全文
posted @ 2019-05-06 10:37 月光不染是非 阅读(88) 评论(0) 推荐(0) 编辑