int cnt; int h[maxn]; int prep[maxn]; int pree[maxm]; int dis[maxn]; int st = maxn - 2; int ed = maxn - 1; struct Edge { int v, nxt; int w, f; }e[maxm ...
分类:
Web程序 时间:
2019-11-27 14:57:05
阅读次数:
92
1 #include<iostream> 2 #include<queue> 3 using namespace std; 4 struct tree{ 5 int num; 6 string s; 7 tree(int x,string zfc) 8 { 9 num=x; 10 s=zfc; 11 ...
分类:
其他好文 时间:
2019-11-27 00:32:37
阅读次数:
68
先介绍本章(我新用上了的)新东西、最佳神器:priority_queue。妈妈再也不用担心我花时间写队列排序啦! 需求:#include<queue> 用法:priority_queue<T, vector<T>, greater<T>>(升序)/priority_queue<T, vector<T ...
分类:
其他好文 时间:
2019-11-24 00:16:29
阅读次数:
83
生成树协议 STP的工作过程如下:首先进行根网桥的选举,其依据是网桥优先级(bridge priority)和MAC地址组合生成的桥ID,桥ID最小的网桥将成为网络中的根桥(bridge root)。在此基础上,计算每个节点到根桥的距离,并由这些路径得到各冗余链路的代价,选择最小的成为通信路径(相应 ...
分类:
其他好文 时间:
2019-11-22 19:37:11
阅读次数:
84
CSCI-1200 Data Structures — Fall 2019Homework 9 — Priority Queues for Mesh SimplificationIn this assignment we will work with a 2D mesh or graph of ve ...
分类:
其他好文 时间:
2019-11-21 18:32:45
阅读次数:
64
Spring整合Quartz 进入quartz的官网http://www.quartz-scheduler.org/,点击Downloads, 下载后在目录\docs\dbTables下有常用数据库创建quartz表的脚本 完整pom依赖 <?xml version="1.0" encoding=" ...
分类:
数据库 时间:
2019-11-17 12:23:10
阅读次数:
73
#include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> #define inf float(0x3f3f3f3f) #define MAXSIZE 100 char priority[7] = {'+', '- ...
分类:
编程语言 时间:
2019-11-16 17:22:04
阅读次数:
117
[toc]一、背景介绍在网络架构设计中,防环是一个很重要的因素,环路的潜在隐患不再赘述,所以无论是三层还是二层都非常注意防环的机制,在三层中无论是ttl值还是ospf这种倒状树结构其目的都是为了避免环路,在二层中防环的机制则为生成树协议(spanningtreeprotocol),以及优化后的rstp和mstp,本章重点介绍stp生成树协议。二、STP协议的端口状态stp协议是通过计算后在实际产生
分类:
其他好文 时间:
2019-11-15 09:34:09
阅读次数:
221
" 题目传送门 " 刚看到这道题:这题直接用堆+模拟不就可以了(并没有认真算时间复杂度) 于是用priority_queue水到了85分…… (STL大法好) 天真的我还以为是常数问题,于是疯狂卡常……~~(我是ZZ)~~ 直到我下了组数据,结果它跑了……跑了…… 10s ~~(这叫我怎么卡常)~~ ...
分类:
其他好文 时间:
2019-11-13 22:03:48
阅读次数:
76
赛前没啥时间好好解释了,还有三天2019CSP,大家加油啊!!! ヾ(?°?°?)?? 背掉它就好啦!!! 我觉得我这一版打得还行就放上来了 #include<cstdio> #include<cstring> #include<iostream> #include<queue> #include< ...
分类:
其他好文 时间:
2019-11-12 20:31:11
阅读次数:
109