摘要: 本章最重要的内容: (1)虚拟互联网络的概念 (2)IP地址与物理地址的关系 (3)传统的分类IP地址(包括子网掩码)和无分类域间路由选择CIDR (4)路由选择协议的工作原理4.1 网络层提供的两种服务网络层向上只提供简单灵活的、无连接的、尽最大努力交付的数据报服务... 阅读全文
posted @ 2018-05-12 23:21 Bryce1010 阅读(249) 评论(0) 推荐(0) 编辑
摘要: COT2 - Count on a tree IIYou are given a tree with N nodes. The tree nodes are numbered from 1 to N. Each node has an integer weight.W... 阅读全文
posted @ 2018-05-12 15:49 Bryce1010 阅读(127) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std;const int MAXN=1e6+7;int p[MAXN];int _find(int x){ return p[x]==x?x:p[x]=_find(p[x]);}void _union(int ... 阅读全文
posted @ 2018-05-12 15:04 Bryce1010 阅读(59) 评论(0) 推荐(0) 编辑