直接干 1 #include<iostream> 2 #include<algorithm> 3 #include<climits> 4 using namespace std; 5 struct edge 6 { 7 int from,to,weight; 8 }a[100010];//存边 9 ...
分类:
其他好文 时间:
2020-01-26 12:58:41
阅读次数:
56
从邻接矩阵中提取出边,然后跑一边kruscal 1 #include<iostream> 2 #include<algorithm> 3 using namespace std; 4 struct node 5 { 6 int x,y,w; 7 }; 8 int cnt=0;//记录边数 9 nod ...
分类:
其他好文 时间:
2020-01-26 11:44:12
阅读次数:
105
1 #include<cstdio> 2 #include<cstring> 3 #include<iostream> 4 #include<algorithm> 5 #include<map> 6 #include<queue> 7 #include<string> 8 using namespa ...
分类:
其他好文 时间:
2020-01-26 11:40:42
阅读次数:
72
LIME: Low light Image Enhancement via Illumination Map Estimation [toc] 1. approach Retinex theory In this paper, A method enhancing low light image i ...
分类:
其他好文 时间:
2020-01-25 20:47:44
阅读次数:
157
之前写的东西因为断网没了(心态爆炸。。。) 总之用宽搜解决迷宫问题就是用队列先进先出的特点,一旦找到了结果一定是最短的(结合树状图自己理解) 代码如下 #include <iostream> #include <queue> #include <algorithm> #include <cstrin ...
分类:
其他好文 时间:
2020-01-25 15:37:12
阅读次数:
78
std::mismatch 定义于头文件 <algorithm> 一、定义:(共八种定义方式,一开始先了解两种即可) 1. template< class InputIt1, class InputIt2 > constexpr std::pair<InputIt1,InputIt2> mismat ...
分类:
其他好文 时间:
2020-01-24 00:35:39
阅读次数:
102
The JPEG compression algorithm split the image into 8x8 blocksMy thinking is that if we split an image into 8x8 blocks, feed each block to libjpeg and ...
分类:
其他好文 时间:
2020-01-23 15:29:21
阅读次数:
99
There is a classical process named partition in the famous quick sort algorithm. In this process we typically choose one element as the pivot. Then th ...
分类:
其他好文 时间:
2020-01-23 13:55:58
阅读次数:
81
基本思想: 没什么难的,水题,重点在于审题; 关键点: 无; #include<iostream> #include<stdlib.h> #include<stdio.h> #include<vector> #include<string> #include<math.h> #include<alg ...
分类:
其他好文 时间:
2020-01-23 12:39:56
阅读次数:
82
A:判断一下和是不是3的倍数,由于只加不减,所以还要判断有没有大于和的1/3。 1 #include<stdio.h> 2 #include<string.h> 3 #include<algorithm> 4 #define it register int 5 #define ct const in ...
分类:
其他好文 时间:
2020-01-23 09:39:49
阅读次数:
70