三元环问题 解题思路: 度 = 入度 + 出度 根据 1、度小的连向度大的 2、若度相同,则编号小的连向编号大的 把所有的边建立成有向边(防止后面重复的统计三元环) 然后for循环遍历所有的边 判断所有的边的两端点,判断两个端点有没有连接,如果有连接,那么就ans++。 代码: #include < ...
分类:
其他好文 时间:
2021-06-02 16:59:52
阅读次数:
0
清洗磁带 https://www.veritas.com/content/support/en_US/doc/123533878-127136857-0/v123555387-127136857 NetBackup status code 87: media close error https:// ...
分类:
其他好文 时间:
2021-06-02 16:46:08
阅读次数:
0
集群网络配置 分别设置修改主机名 master slave1 slave2 hostnamectl set-hostname 名字 分别配置/etc/hosts文件 查看openssh和rsync安装 rpm -qa | grep 名字 切换到Hadoop用户 各节点生成秘钥 ssh-keygen ...
分类:
系统相关 时间:
2021-06-02 15:27:52
阅读次数:
0
最大连接数 show variables like '%max_connections%'; 最大连接数 对于并发编程了解过的人知道,这个151不是越大越好,一般来说设置为 最大连接数 = cpu X 2 会比较合适, 因为受 IO 影响,连接数越大,反而越会占用IO,所以设置过大也可能导致性能降低 ...
分类:
数据库 时间:
2021-06-02 15:17:51
阅读次数:
0
docker-centos7运行systemctl status jenkins, 出现/etc/rc.d/init.d/jenkins: line 59: /etc/init.d/functions: No such file or directory错误, yum安装即可 yum install ...
分类:
其他好文 时间:
2021-06-02 15:14:11
阅读次数:
0
repo sync --helpUsage: repo sync [<project>...] Options: -h, --help show this help message and exit显示此帮助消息并退出 -f, --force-broken continue sync even if ...
分类:
其他好文 时间:
2021-06-02 14:35:51
阅读次数:
0
--check dataguard status select process,status,group#,sequence# from v$managed_standby select * from v$archived_log order by thread#, sequence#; selec ...
分类:
数据库 时间:
2021-06-02 14:24:58
阅读次数:
0
// 定义瓶码字符串 $bianhaop_str = substr($bianhaop_str,1); $bianhaop_arr = explode(',', $bianhaop_str); if(!empty($bianhaop_arr)){ //判断本身是否存在重复项 if(count(arr ...
分类:
编程语言 时间:
2021-06-02 14:10:18
阅读次数:
0
一、防火墙的开启、关闭、禁用命令 (1)设置开机启用防火墙:systemctl enable firewalld.service (2)设置开机禁用防火墙:systemctl disable firewalld.service (3)启动防火墙:systemctl start firewalld ( ...
分类:
系统相关 时间:
2021-06-02 13:23:22
阅读次数:
0
1、显示所有连接 [root@localhost ~]# nmcli con show 2、连接ens33网络 [root@localhost ~]# nmcli con up ens33 备注 这个ens33是通过第一步查到的 /etc/sysconfig/network-scripts目录下会有 ...
分类:
其他好文 时间:
2021-06-02 13:10:38
阅读次数:
0