贪心算法相关代码实现 以下代码搬运自《趣学算法》实战演练 1、加勒比海盗船——最优装载问题 #include <iostream> #include <algorithm> const int N=1000005; using namespace std; double w[N]; //古董的重量数 ...
分类:
编程语言 时间:
2020-09-16 12:17:10
阅读次数:
30
环境说明: 某客户有一套环境,源端数据库的版本为:12.1.0.2(Non-CDB),目标端为:12.2.0.1(CDB), 在每个月的月初,会在目标端主机上会执行一个脚本(该脚本的内容其实就是impdp + network_link)将源端数据库中的一部分表导入到目标数据库中。 该脚本一直运行良好 ...
分类:
Web程序 时间:
2020-09-16 12:06:57
阅读次数:
54
尝试使用set记录幂次,实际边界问题较多,下次谨慎使用, set不太适用递减输出!! 最后一个点输出错误,这是因为得到的最后结果为0,需要只输出一个0(后面没有空格)。 #include<cstdio> #include<set> #include<string.h> using namespace ...
分类:
其他好文 时间:
2020-09-15 21:04:11
阅读次数:
35
先用数组记录前缀和,然后减去两者的差值。 由于数组形成的是个环,所以累加和是固定的,反方向的距离实际就等于总长度减去正向的长度 注意distan的实际含义 #include<cstdio> #include<algorithm> using namespace std; const int N = ...
分类:
其他好文 时间:
2020-09-15 21:02:52
阅读次数:
34
835 Trie字符串统计 链接:https://www.acwing.com/problem/content/837/ #include <iostream> using namespace std; const int N = 100010; int n; int son[N][26], cnt ...
分类:
编程语言 时间:
2020-09-15 20:53:33
阅读次数:
49
1.查询github.global.ssl.fastly.net和github.com两个网址的ip地址 浏览器输入网址→F12→Network→Name→github.global.ssl.fastly.net→Headers。 2.将查询到的ip地址,添加到hosts文件中。 windows系统 ...
分类:
其他好文 时间:
2020-09-14 19:21:57
阅读次数:
52
01背包:指的是每种物品只能选0次或1次的背包问题。 在01背包的基础上说一下闫氏dp分析法: 状态计算使用的集合划分方法: #include<iostream> using namespace std; const int N = 1010; int n, m; int f[N][N]; int ...
分类:
其他好文 时间:
2020-09-14 19:11:24
阅读次数:
37
#include<cstdio> #include<queue> #include<vector> using namespace std; const int N = 1010; queue<int> q; int w[N]; int result[N]; int main(){ int np,n ...
分类:
其他好文 时间:
2020-09-12 21:48:03
阅读次数:
38
安装harbor仓库服务器基本需求CPU2个内存4GB硬盘40GB环境需求python版本2.7以上docker版本1.10以上端口第一步需要安装docker-composecurl-Lhttps://github.com/docker/compose/releases/download/1.9.0/docker-compose-`uname-s`-`uname-m`>/usr/local/
分类:
Web程序 时间:
2020-09-12 21:24:00
阅读次数:
46
安装harbor仓库服务器基本需求CPU2个内存4GB硬盘40GB环境需求python版本2.7以上docker版本1.10以上端口第一步需要安装docker-composecurl-Lhttps://github.com/docker/compose/releases/download/1.9.0/docker-compose-`uname-s`-`uname-m`>/usr/local/
分类:
Web程序 时间:
2020-09-12 21:23:42
阅读次数:
63