说说建图吧…poj1459:增加超级源点,超级汇点,跑一遍即可。#include
#include
#include
#include
#include
#include
#include
using namespace std;const int MAX = 107;...
分类:
其他好文 时间:
2015-05-02 13:54:59
阅读次数:
206
#include
#define DefaultSize 9
//问题描述:
//12个高矮不同的人,排成两排,每排必须是从矮到高排列,而且第二排比对应的第一排的人高,问排列方式有多少种?
using namespace std;
class Grial
{
public:
Grial(int sz=DefaultSize)
{
visted = new bool [sz];
da...
分类:
编程语言 时间:
2015-05-02 13:51:01
阅读次数:
269
这一题,就是简单的最小生成树的应用。开始,没有想到用最小生成树做,想到的是贪心,当知道了用最小生成树做的时候,还犯了一个很严重的错误,就是时间复杂度的估计错了,导致开始不敢写,在想其他的办法。当作一次教训吧。
下面是AC的代码,有详细的注释,用的是并查集来判环,时间复杂度为nlogn,主要时间在排序上。
#include
#include
#include
#include
using...
分类:
其他好文 时间:
2015-05-02 12:33:32
阅读次数:
119
题意:推箱子游戏代码写错居然卡内存!!搞了两天了 1 #include 2 #include 3 #include 4 #include 5 6 using namespace std; 7 char s[9][9]; 8 int d[4][2]={1,0,0,1,-1,0...
分类:
其他好文 时间:
2015-05-02 12:23:34
阅读次数:
115
经典的线段树题目,也可以用块链来做。 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 typedef __int64 ll; 8 const ll M = 400; 9 ll b...
分类:
其他好文 时间:
2015-05-02 11:09:58
阅读次数:
137
This tutorial walks you through the steps that are needed to deploy and configure Enterprise manager 11g plugin to an existing WebLogic server domain....
分类:
其他好文 时间:
2015-05-02 11:08:46
阅读次数:
132
This demo illustrates how you can move and transform all your data using Oracle Data Integration - whether that data resides in Oracle Database, Hadoo...
分类:
数据库 时间:
2015-05-02 11:07:00
阅读次数:
179
In this tutorial we will see about debugging java applications using Eclipse. Debugging helps us to identify and fix defects in the application. We wi...
分类:
编程语言 时间:
2015-05-02 11:04:32
阅读次数:
270
给定n个顶点做成的图,要求从顶点0出发经过所有点一次然后回到0点的一条权值之和最小的一条路的权值
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define INF 100000000
using namespace std;
struc...
分类:
其他好文 时间:
2015-05-02 09:46:02
阅读次数:
151
使用文件流拷贝一个较大的多媒体文件:
public static void CopyFile(string soucre, string target)
{
using (FileStream fsRead = new FileStream(soucre, FileMode.Open, FileAccess.Read))
{...
分类:
其他好文 时间:
2015-05-02 09:43:37
阅读次数:
121