Delphi 执行SQL脚本/执行SQL GO 脚本语句 注意:文件的编码格式,最好要统一,ANSI编码或UNICODE编码 方法1: var s: string; sqltext: string; sqlfile: TextFile; begin if OpenDialog1.Execute th ...
分类:
数据库 时间:
2020-09-18 02:53:51
阅读次数:
48
/** * Calculate the size of the mempool header. * * @param mp * Pointer to the memory pool. * @param cs * Size of the per-lcore cache. */ #define MEMP ...
分类:
其他好文 时间:
2020-09-18 01:52:20
阅读次数:
30
给出一个序列,m个查询,每次查询区间是否是$[1, r - l + 1]$的排列 判断是否是排列: 即每个数字只出现一次 区间和是$\frac{n * (n + 1)}{2}$,n是区间长度。 判断每个数字是否只出现一次,可以预处理每个数之和第一次出现这个数字的位置,如果没有那么设置为0,然后用线段 ...
分类:
其他好文 时间:
2020-09-18 00:02:53
阅读次数:
30
代码importjava.util.Random;classgetNUmberUtils{publicstaticintgetRandNumber(){Randomrandom=newRandom();int[]num={98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,163,164,165,166,167,168,169
分类:
编程语言 时间:
2020-09-17 23:43:05
阅读次数:
36
一.安装要求1.2台以上同属于一个内网的机器,操作系统需要高于centos7以上2.硬件配置内存需要大于2G3.可以访问外网,需要拉取镜像4.禁止swap分区二.学习目标1.在所有节点安装Docker和kubeadm2.部署kubernetesMaster3.部署容器网络插件fannel4.部署kubernetesNode,将节点加入到Kubernetes集群中5.部署Dashboardweb页面
分类:
其他好文 时间:
2020-09-17 20:21:34
阅读次数:
26
char * removeOuterParentheses(char * S){ int len = strlen(S),count=1,n=0; char* ret = (char*)calloc(len,sizeof(char*)); for (int i=1; i<len; i++) { (S ...
分类:
其他好文 时间:
2020-09-17 19:23:34
阅读次数:
21
题目描述: This is the first problem for test. Since all we know the ASCII code, your job is simple: Input numbers and output corresponding messages. 输入: T ...
分类:
其他好文 时间:
2020-09-17 17:23:30
阅读次数:
51
读题比较恶心,看到题目就不想写了(),手写了个逻辑理了半天。直接getline会有20分的点超时,手写读入过了,getchar大法好。 1 #include<bits/stdc++.h> 2 using namespace std; 3 const int maxn=10000010; 4 int ...
分类:
其他好文 时间:
2020-09-17 13:30:56
阅读次数:
42
####什么是二分图? 二分图,就是能把图内所有元素划分成两个集合,且集合内没有边相连的图 ####二分图有什么性质? 如果图中有奇数环,则该图不是二分图 染色法求二分图 #include <cstring> #include <iostream> #include <algorithm> usin ...
分类:
其他好文 时间:
2020-09-16 12:29:33
阅读次数:
29
ES6中数值的用法 Number.isNaN()函数:用于判断传入的是否是非数值 , NaN(非数值),才返回true console.log(Number.isNaN(2.5)); //false console.log(Number.isNaN('abc')); //false console. ...
分类:
编程语言 时间:
2020-09-15 20:51:15
阅读次数:
30