题意:给出一个无向图。问删去每一条边后,是否出现一对(u,v) st 删去这条边后,u和v不连通,且u 2 #include 3 #include 4 using namespace std; 5 const int N = 100005; 6 7 int head[N], max...
分类:
其他好文 时间:
2015-08-21 01:49:58
阅读次数:
179
使用html5画图:https://gridwizard.wordpress.com/2015/03/25/simple-c-library-to-render-graph-to-flowchart/https://github.com/gridwizard/SimpleFlowDiagramwpf...
分类:
其他好文 时间:
2015-08-21 01:44:50
阅读次数:
137
Tree
Time Limit: 5000MS
Memory Limit: 131072K
Total Submissions: 6131
Accepted: 1682
Description
You are given a tree with N nodes. The tree’s nodes are numbered 1 th...
分类:
其他好文 时间:
2015-08-20 22:39:10
阅读次数:
303
http://coding-time.blogspot.hk/2008/03/serialize-object-graph-to-xml-in-net.htmlHow to serialize any data structure to XML? My first idea was XmlSeria...
分类:
Web程序 时间:
2015-08-20 20:36:25
阅读次数:
224
QLineEdit是继QLabel和QAbstractButton之后最为常见的输入类编辑控件。顾名思义,其是单行编辑控件,经常用于编辑简短的信息,如用户登录信息及密码输入等。作为编辑框其具有常见的编辑动作,如清除内容clear,复制copy,剪切cut,粘贴paste,重做rudo、撤销undo,...
分类:
其他好文 时间:
2015-08-20 12:37:22
阅读次数:
159
The Bottom of a Graph
Time Limit: 3000MS
Memory Limit: 65536K
Total Submissions: 9575
Accepted: 3984
Description
We will use the following (standard) definitions fr...
分类:
其他好文 时间:
2015-08-20 10:35:25
阅读次数:
131
1553. Caves and Tunnels
Time limit: 3.0 second
Memory limit: 64 MB
After landing on Mars surface, scientists found a strange system of caves connected by tunnels. So they began to research...
分类:
其他好文 时间:
2015-08-19 11:15:07
阅读次数:
255
通过plt.subplot可以在一张图中画出多个子图
#coding: utf-8
#!/usr/bin/env python
"""
Draw a graph with matplotlib.
You must have matplotlib for this to work.
"""
__author__ = """Aric Hagberg (hagberg@lanl.gov)"""
# ...
分类:
编程语言 时间:
2015-08-19 11:13:00
阅读次数:
155
Find Cycle
A graph is a type of data structure that consists of nodes and edges that connect the nodes. An edge has a start node and end node, and we will only consider directed edges.
The figure be...
分类:
其他好文 时间:
2015-08-19 09:30:27
阅读次数:
251
1036: [ZJOI2008]树的统计Count
Time Limit: 10 Sec Memory Limit: 162 MB
Submit: 8421 Solved: 3439
[Submit][Status][Discuss]
Description
一棵树上有n个节点,编号分别为1到n,每个节点都有一个权值w。我们将以下面的形式来要求你对这棵树完成一些操作: I. CH...
分类:
其他好文 时间:
2015-08-18 22:53:02
阅读次数:
134