![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
简单的数据处理方式
little-fairy
卡题是一种幸福~
展开
-
数的hash
实现方式: 原数组复制到另一个数组并排序,对排序后数组二分得到key值。 模板: ///数的hash #include<stdio.h> #include<stdlib.h> #include<string.h> #include<iostream> using namespace std; #define maxn 100005 int ...原创 2018-07-28 19:23:24 · 172 阅读 · 0 评论 -
简单的邻接表
邻接表是图的一种最主要的存储结构,对图上的每一个点建立一个容器,用来储存每个顶点的所有邻接点以及距离。 下面的是一个简单的模板 ///邻接表 #include<stdio.h> #include<vector> #include<iostream> using namespace std; const int maxn=100005; struc...原创 2018-07-28 19:51:59 · 288 阅读 · 0 评论