#include using namespace std;class CFatherSum //父类Sum{public: CFatherSum(){cout<<"1,Default Constructing CFatherSum"<<endl;}//默认构造 CFath...
分类:
编程语言 时间:
2015-04-28 18:08:49
阅读次数:
106
#include using namespace std;class CFatherSum //父类Sum{public: CFatherSum(int iRec){cout<<"1,Constructing CFatherSum"<<iRec<<endl;}//构造函数成员初...
分类:
编程语言 时间:
2015-04-28 17:54:36
阅读次数:
165
Problem Description
Ant Country consist of N towns.There are M roads connecting the towns.
Ant Tony,together with his friends,wants to go through every part of the country.
They intend to visit every road , and every road must be visited for exact one t...
分类:
其他好文 时间:
2015-04-27 13:22:54
阅读次数:
148
【题目链接】:click here~~
【题目大意】:已知某几条道路已经修完,求全部道路要通路的最小花费
【解题思路】:基础的Kruskal算法了,按照边的权值从小到大排序一遍,符合条件加入到生成树中
代码:
/*
Author:HRW
kruskal+并查集
*/
#include
using namespace std;
const int max_v=105;
const int...
分类:
编程语言 时间:
2015-04-25 10:45:48
阅读次数:
208
Constructing Roads In JGShining's KingdomProblem DescriptionJGShining's kingdom consists of 2n(n is no more than 500,000) small cities which are...
分类:
其他好文 时间:
2015-04-24 00:57:02
阅读次数:
154
Japan
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 22258
Accepted: 5995
Description
Japan plans to welcome the ACM ICPC World Finals and a lot of roads ...
分类:
编程语言 时间:
2015-04-21 22:46:39
阅读次数:
182
Cycling Roads
Time Limit: 1000ms
Memory Limit: 65536KB
This problem will be judged on Ural. Original ID: 1966
64-bit integer IO format: %lld Java class name: (Any)
Prev Submit Stat...
分类:
其他好文 时间:
2015-04-19 22:53:32
阅读次数:
169
??
The wheel of the history rolling forward, our king conquered a new region in a distant continent.
There are N towns (numbered from 1 to N) in this region connected by several roads. It's confirme...
分类:
其他好文 时间:
2015-04-18 08:46:29
阅读次数:
184
Constructing Roads In JGShining's Kingdom
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 17732 Accepted Submission(s): 5023
Problem...
分类:
其他好文 时间:
2015-04-17 11:37:34
阅读次数:
161
#include
using namespace std;
class Base
{
int x;
public:
Base(int a)
{
x = a;//记得给私有成员赋初值,没有的话会是随机值
cout<<"constructing Base "<<x<<endl;
}
~Base()
{
co...
分类:
编程语言 时间:
2015-04-15 14:56:27
阅读次数:
154