摘要: 嗯 考完day1就退役了 阅读全文
posted @ 2016-11-19 14:01 Native_carrot 阅读(195) 评论(1) 推荐(0) 编辑
摘要: 不断向失配处转移 阅读全文
posted @ 2016-11-18 22:07 Native_carrot 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 又写了一个板子,本来准备多种姿势求lca的,结果只调出了树上倍增求lca,时(总)运(想)不(打)济(摆)啊 明天写好了 一言不合就立flag 1 #include<iostream> 2 #include<cstring> 3 #include<cstdio> 4 #include<algorit 阅读全文
posted @ 2016-11-17 20:38 Native_carrot 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 去年九月份,懵懂无知的我初到浏阳一中,没有多想就接受了同学的安利,加入了信息组。 我那时候大概还不知道,这样一个随意地决定使我的生活驶向了另一个轨道。 高一的我大概只觉得信竞可以免费玩电脑是一件幸福的事,渐渐发现算法的魅力其实也很大。 可惜一年的时间大多混吃等死,现在NOIP近在眼前,我的实力却只能 阅读全文
posted @ 2016-11-17 20:00 Native_carrot 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 本来考试准备愉快的打树状数组,结果不记得了,哈哈哈 树状数组区间更新、查询模板 #include<iostream> #include<cstring> #include<cstdio> #include<algorithm> #define lowbit(x) ((x)&-(x)) using n 阅读全文
posted @ 2016-11-16 15:07 Native_carrot 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 今天考试的时候很开心的打了一个线段树,考完一看,SMG #include<iostream> #include<cstring> #include<cstdio> #include<algorithm> #define maxn 100001 #define LL long long using n 阅读全文
posted @ 2016-11-16 15:03 Native_carrot 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 我之前一直觉得高精度很麻烦,然而今天一打才发现 这么个zz东西我居然还弃疗过(模板果然还是要自己打) 高精度加法 1 #include<iostream> 2 #include<cstring> 3 #include<cstdio> 4 #include<algorithm> 5 using nam 阅读全文
posted @ 2016-11-15 21:28 Native_carrot 阅读(322) 评论(2) 推荐(0) 编辑
摘要: 今天脑子里面又有水啦 1.为什么要swap(n,m) 深井冰 2.pi 的精度要达到3.14159265358979323846 哈哈哈哈 我个sb 以上By nzys的LQ_double 阅读全文
posted @ 2016-11-15 15:03 Native_carrot 阅读(101) 评论(1) 推荐(0) 编辑
摘要: 【模板】矩阵快速幂 【模板】矩阵快速幂 【模板】矩阵快速幂 题目背景 矩阵快速幂 题目描述 给定n*n的矩阵A,求A^k 输入输出格式 输入格式: 第一行,n,k 第2至n+1行,每行n个数,第i+1行第j个数表示矩阵第i行第j列的元素 输出格式: 输出A^k 共n行,每行n个数,第i行第j个数表示 阅读全文
posted @ 2016-11-14 21:46 Native_carrot 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 今天考试还是比较欢乐的,但是还是存在一些缺陷 1.T1仍有特殊情况没有考虑清楚 2.虽然想到可以用二分or三分,但是没有想到正确的方向 3.没有骗到所有能骗到的分 明天会更好 以上by233carrot 阅读全文
posted @ 2016-11-14 18:54 Native_carrot 阅读(143) 评论(0) 推荐(0) 编辑