参考: https://www.yuque.com/keep_running/python/prkdk8 version: '3' services: db: image: postgres restart: always environment: POSTGRES_PASSWORD: 12345 ...
分类:
其他好文 时间:
2020-10-30 12:28:10
阅读次数:
23
配置文件配置fdfs_client.conf配置文件#连接超时时间,针对socket套接字函数connect,默认为30秒connect_timeout=30000#网络通讯超时时间,默认是60秒network_timeout=60000tracker_server=47.98.159.15:22122导入依赖<dependency><groupId>org.csource
分类:
编程语言 时间:
2020-10-30 11:35:42
阅读次数:
25
题意: 拓扑排序,输出字典序最小的。 思路:优先队列优化。 #include <iostream> #include <vector> #include <queue> #include<string.h> using namespace std; int n, m; const int N=1e5 ...
分类:
编程语言 时间:
2020-10-29 10:24:45
阅读次数:
26
打开终端 ctrl+alt+t 查看IP # 若提示找不到命令,则需安装 net-tools sudo apt-get install net-tools ifconfig -a 配置 ###静态ip vi /etc/sysconfig/network-scripts/ifcfg-xxx DEVIC ...
分类:
系统相关 时间:
2020-10-29 09:57:37
阅读次数:
75
完全背包模型 二维 #include<iostream> using namespace std; const int N = 4010; const unsigned int mod = 1 << 31; unsigned int f[N][N]; int n; int main(){ cin > ...
分类:
其他好文 时间:
2020-10-29 09:20:50
阅读次数:
15
去年比赛的时候虽然对了,但写的好麻烦,以至于后面不敢再写这道题,今天又写了一遍,贴出来做纪念。 #include<stdio.h> #include<bits/stdc++.h> using namespace std; #define ll long long #define io_opt ios ...
分类:
其他好文 时间:
2020-10-27 11:46:36
阅读次数:
32
凸包板子 #include<iostream> #include<cstdio> #include<cmath> #include<cstring> #include<algorithm> using namespace std; struct Point { int x,y; }; Point a ...
分类:
其他好文 时间:
2020-10-27 11:27:51
阅读次数:
20
1. 自动获取ip 1.1 编辑 /etc/sysconfig/network-scripts/ifcfg-eth0 vim /etc/sysconfig/network-scripts/ifcfg-eth0 TYPE=Ethernet BOOTPROTO=dhcp DEFROUTE=yes IPV ...
分类:
其他好文 时间:
2020-10-27 11:27:39
阅读次数:
28
DP +++ 一.背包问题 1.01背包 二维数组状态转移 #include <iostream> using namespace std; const int N = 1010; int v[N], w[N]; int n, m; int f[N][N]; int main() { cin >> ...
分类:
其他好文 时间:
2020-10-26 11:54:14
阅读次数:
26
C. 前缀和。 #include <bits/stdc++.h> using namespace std; #define maxn 300000 #define INF 10000000 char c[maxn]; int n, ans = INF, sumB[maxn], sumW[maxn]; ...
分类:
其他好文 时间:
2020-10-26 11:41:45
阅读次数:
22