1.概述 redisson是一个支持分布式的redisson客户端,支持对象的分布式存储。它不仅提供了一系列的分布式的Java常用对象,还提供了许多分布式服务。 2.配置方法 redisson支持程序化的方式,yaml,xml,json等配置方式 Config config = new Config ...
分类:
其他好文 时间:
2020-06-11 00:35:43
阅读次数:
94
http://acm.hdu.edu.cn/showproblem.php?pid=3446 ##题意 一个棋盘,有个KING,有一些能走的点,每次只能走到没走过的地方,没路可走的输,求先手是否必胜。 ##题解 一般图最大匹配,判断KING是否一定在最大匹配中,在的话一定先手必胜. 在最大匹配一定先 ...
分类:
其他好文 时间:
2020-06-10 19:25:22
阅读次数:
53
解释 官方文档中: The difference between min and minBy is that min returns the minimum value, whereas minBy returns the element that has the minimum value in ...
分类:
其他好文 时间:
2020-06-10 12:58:08
阅读次数:
127
<!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maxim ...
分类:
其他好文 时间:
2020-06-08 12:25:02
阅读次数:
88
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1848 代码如下: #include<bits/stdc++.h> using namespace std; typedef unsigned int ui; typedef long long ll; ...
分类:
其他好文 时间:
2020-06-06 19:00:21
阅读次数:
75
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1527 代码如下: #include<bits/stdc++.h> using namespace std; typedef unsigned int ui; typedef long long ll; ...
分类:
其他好文 时间:
2020-06-06 18:18:17
阅读次数:
60
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1521 代码如下: #include<bits/stdc++.h> using namespace std; typedef unsigned int ui; typedef long long ll; ...
分类:
其他好文 时间:
2020-06-06 13:06:06
阅读次数:
56
题目链接:https://vjudge.net/problem/HDU-1074 Ignatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher ...
分类:
其他好文 时间:
2020-06-05 13:08:02
阅读次数:
72
\[ \texttt{Description} \] 有一个名为 233 的矩阵 a。 对于第一行,有 \(a_{0, 1} = 233\),\(a_{0, 2} = 2333\),\(a_{0,3} = 23333\) ... 对于 \(\forall i, j \neq 0\),有 \(a_{i ...
分类:
其他好文 时间:
2020-06-04 21:37:22
阅读次数:
59
题目链接 #题目大意 有n个编号为0~n的物品,并且有两个操作,分别是将两个物品合并在一个集合里和把一个物品从集合里取出来,问最后有多少个集合。 #解题思路 本题主要是如何把物品从集合中取出,可以设立一个与原物品编号不同的点作为辅助点。这样挂在同一个辅助点的物品都是属于同一个集合的,而挂在不同辅助点 ...
分类:
其他好文 时间:
2020-06-04 14:01:12
阅读次数:
52