随笔分类 -  算法讲解及ACM小技巧

摘要:利用clock函数测试函数(算法)解决问题用时#include #include#include#include#include#include#include#include #include clock_t start, stop;//clock_t是clock(... 阅读全文
posted @ 2018-04-28 12:48 focus5679 阅读(333) 评论(0) 推荐(0)
摘要:KMP算法的核心思想是避免匹配失败时重新从短串的第一个字符开始匹配,从而提高匹配效率。#include #include#include#include#include#include#include#include typedef long long ll;usin... 阅读全文
posted @ 2018-04-26 15:00 focus5679 阅读(205) 评论(1) 推荐(0)