参考链接: https://captcha.anji-plus.com/#/doc https://github.com/anji-plus/captcha http://doc.ruoyi.vip/ruoyi-vue/document/cjjc.html#%E9%9B%86%E6%88%90aj- ...
分类:
其他好文 时间:
2021-04-14 11:53:09
阅读次数:
0
#题目 #代码 #include <unordered_map> #include <vector> using namespace std; class Solution { public: vector<int> twoSum(vector<int> &nums, int target) { v ...
分类:
其他好文 时间:
2021-04-13 12:55:20
阅读次数:
0
因为trino 与presto还是有差异的,所以fork 原有presto clinet进行了调整,同时发布了一个npm包 参考修改的代码 lib/presto-client/headers.js var Headers = exports.Headers = function(){ }; Head ...
分类:
Web程序 时间:
2021-04-13 12:41:50
阅读次数:
0
1. 下载zookeeper https://mirrors.cnnic.cn/apache/zookeeper/ 选择带bin的 2. 解压 3.创建配置文件 cp ${path}/conf/zoo_sample.cfg ${path}/conf/zoo.cfg 4.修改配置文件 zk1配置 # ...
分类:
其他好文 时间:
2021-04-13 12:29:00
阅读次数:
0
函数题 /*练习5-1 求m到n之和 (10 分) 本题要求实现一个计算m~n(m<n)之间所有整数的和的简单函数。 函数接口定义: int sum( int m, int n ); 其中m和n是用户传入的参数,保证有m<n。函数返回的是m~n之间所有整数的和。 裁判测试程序样例: #include ...
分类:
编程语言 时间:
2021-04-13 12:28:09
阅读次数:
0
在求独立的随机变量之和的分布时,可用矩母函数法。 1 矩母函数法 定理 已知$X_1,\ldots,X_n$为独立的随机变量,各种的矩母函数为$M_1,\ldots,M_n$,$a_1,\ldots,a_n$为常数,则$Y=\sum_^a_i X_i$的矩母函数为 \[ M_Y(t)=\text{E ...
分类:
其他好文 时间:
2021-04-13 12:24:16
阅读次数:
0
答案是对着这段区间 [L,R] 不断询问直到不存在 x+1 得来的; 例如一个区间有为 1,2,4,4; 首先询问 1,发现存在 1,ans = 1; 然后询问 ans+1 = 2,发现存在 2,则 [1,3] 都能凑出,ans = 3; 接着询问 ans+1 = 4,发现存在两个 4,则 [1,1 ...
分类:
其他好文 时间:
2021-04-13 12:16:27
阅读次数:
0
利用上一题求深度的做法 /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = ...
分类:
其他好文 时间:
2021-04-13 12:05:30
阅读次数:
0
Mybatis-plus 上 简介 1.什么是Mybatis-plus MyBatis-Plus(简称 MP)是一个 MyBatis的增强工具,在 MyBatis 的基础上只做增强不做改变,为简化开发、提高效率而生。 官网:https://baomidou.com/ 愿景 我们的愿景是成为 MyBa ...
分类:
其他好文 时间:
2021-04-13 11:46:14
阅读次数:
0
这里有板子 最大流 view code namespace Flow { int tot=1,fi[N],ne[M],to[M],w[M],S,T,d[N],nn; inline void add(int x,int y,int c) { ne[++tot]=fi[x],fi[x]=tot,to[t ...
分类:
其他好文 时间:
2021-04-13 11:45:28
阅读次数:
0