#include<iostream> #include<map> #include<algorithm> using namespace std; void func(pair<int, char> t) { cout << "key: " << t.first << " value: " << t ...
分类:
其他好文 时间:
2018-10-04 08:48:40
阅读次数:
124
题意 分析 代码 cpp include include include include include include include define MP make_pair define PB emplace_back define fi first define se second defin ...
分类:
其他好文 时间:
2018-10-03 23:23:58
阅读次数:
163
题意与分析 稍微复杂一些的思维题。反正这场全是思维题,就一道暴力水题(B)。 代码 cpp include define MP make_pair define PB emplace_back define fi first define se second define ZERO(x) memse ...
分类:
其他好文 时间:
2018-10-03 22:29:58
阅读次数:
164
题意与分析 一道非常坑的水题。分析醒了补。 代码 cpp include define MP make_pair define PB emplace_back define fi first define se second define ZERO(x) memset((x), 0, sizeof( ...
分类:
其他好文 时间:
2018-10-03 22:26:47
阅读次数:
143
题意与分析 极简单的数论+思维题。 代码 cpp include define MP make_pair define PB emplace_back define fi first define se second define ZERO(x) memset((x), 0, sizeof(x)) ...
分类:
其他好文 时间:
2018-10-03 21:44:56
阅读次数:
243
题意与分析 图论基础+思维题。 代码 cpp include define MP make_pair define PB emplace_back define fi first define se second define ZERO(x) memset((x), 0, sizeof(x)) de ...
分类:
其他好文 时间:
2018-10-03 20:58:35
阅读次数:
122
题意: ? 思路: 用优先队列直接模拟就OK了,另外优先队列存pair的时候比较的是first的值,实测!! ? 上代码: 1 #include <iostream> 2 #include <queue> 3 #include <cstdio> 4 #include <algorithm> 5 #i ...
一、Neutron概述众所周知,整个Openstack中网络是通过Neutron组件实现,它也成为了整个Openstack中最复杂的部分,本文重点介绍Neutron的实现模型与应用场景,闲言少叙,步入正题。1.Neutron的架构Neutron的架构如下图所示:NeutronServe由CorePlugins和ServicePlugins组成,原生Neutron的CorePlugins使用的是ML
分类:
其他好文 时间:
2018-10-02 14:06:44
阅读次数:
183
CF 1041E:http://codeforces.com/contest/1041/problem/E 题意: 告诉你一个树的节点个数,显然有n-1条边。已知去掉一条边后,两个集合中最大的节点值。问原来的树形状是怎么样的,构造不出来就输出NO。 思路: 这里说的“度数”可能有点不恰当。指以这个点 ...
分类:
其他好文 时间:
2018-10-02 00:23:18
阅读次数:
236
Given n nodes labeled from 0 to n-1 and a list of undirected edges (each edge is a pair of nodes), write a function to check whether these edges make ...
分类:
其他好文 时间:
2018-10-01 14:10:37
阅读次数:
145