#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> typedef struct ListNode{ int val; ListNode* next; }Node_t, *pNode_t; void print_l ...
分类:
编程语言 时间:
2021-02-03 11:00:00
阅读次数:
0
Fisco bcos 区块链-分布式部署 前置条件:mysql配置成功。 节点搭建 cat > ipconf << EOF 127.0.0.1:1 agencyA 1 127.0.0.1:1 agencyB 1,2 127.0.0.1:1 agencyC 2 EOF bash build_chain ...
分类:
其他好文 时间:
2021-02-01 11:38:11
阅读次数:
0
题目链接: hdu1042 N! \(c\)++ \(AC\) 代码: /** * hdu1042 N! * 0 <= N <= 10000 */ #include <iostream> #include <iomanip> #include <cstring> using namespace st ...
分类:
其他好文 时间:
2021-01-28 12:11:11
阅读次数:
0
变量是存储在内存中的数据,创建一个变量即会在内存上开辟一个空间。 解释器会根据变量的类型来决定其在内存中的存储空间,因此你可以为变量分配不同的数据类型,如整型、浮点型、字符串等。 https://www.douban.com/note/792957319/ 上一章节中我们已经为大家介绍了Perl的三 ...
分类:
其他好文 时间:
2021-01-28 12:07:49
阅读次数:
0
Chapter 6 - Other Popular Machine Learning Methods Segment 2 - A neural network with a Perceptron Perceptron A perceptron is a neural network with jus ...
分类:
编程语言 时间:
2021-01-27 13:05:55
阅读次数:
0
**思路:**反向建边,以每一个农场为起点dfs一遍,得到从这个农场开始能够访问到的奶牛数目cnt,若cnt = k说明所有的奶牛都能到这个农场,结果+1. 复杂度:\(O(n(n+n+m))=O(nm)\),1e7不会超时 #include<iostream> #include<cstring> ...
分类:
其他好文 时间:
2021-01-25 10:54:37
阅读次数:
0
题意 单源最短路,这里的最短路定义为 \(\sum_{i=1}^kw_i - max_{i=1}^kw_i + min_{i=1}^kw_i\) 就是普通的路径长度减去路径上最大的边权再加上最小的边权 思路 分层图跑 Dij ,可以搞成两个操作,一个是使边权变成 0 ,还有一个是把边权变成两倍。 这 ...
分类:
其他好文 时间:
2021-01-25 10:45:22
阅读次数:
0
直接上demo package main import ( "context" "fmt" limt "go.uber.org/ratelimit" "golang.org/x/time/rate" "github.com/juju/ratelimit" "time" ) func Demo1() ...
分类:
其他好文 时间:
2021-01-25 10:36:25
阅读次数:
0
环境 virtual box 6.1 centos 7.8 docker 19.03 kubernetes 1.20.2 安装必备软件 添加 Kubernetes 仓库 cat <<EOF > /etc/yum.repos.d/kubernetes.repo [kubernetes] name=Ku ...
分类:
Web程序 时间:
2021-01-22 12:21:59
阅读次数:
0
sort函数小结 1.要使用头文件#include<algorithm>和using namespace std; 2.对基本类型数组排序 .sort(数组名+n1,数组名+n2) 对下标范围[n1,n2)的元素从小到大排序,下标为n2的元素不在排序区间内 sort(数组名+n1,数组名+n2,gr ...
分类:
其他好文 时间:
2021-01-21 10:50:18
阅读次数:
0