#include
#include
#include
#include
#include
#include
using namespace std;
const int maxn = 1000;
char s[maxn];
bool failed;
vector ans;
struct node
{
bool have_value;
int v;
node *left,*...
分类:
其他好文 时间:
2014-07-27 11:54:43
阅读次数:
198
递归输出就行了
#include
using namespace std;
struct tree{
int dot;
string s;
}t[1020];
int si[1020],a[1020][1020];
void print(int x)
{
for(int i=0;i<=si[x]-1;i++)
{
for(int j=1;j<=t[...
分类:
其他好文 时间:
2014-07-27 11:48:53
阅读次数:
188
点击打开链接
二分图匹配,hopcroft-karp
#include
#include
#include
#include
using namespace std;
const int MAXN = 5010;
const int MAXM = 50010;
struct Edge{
int to, next;
}edge[ MAXM ];
int head[ MAXN ], to...
分类:
其他好文 时间:
2014-07-27 11:45:03
阅读次数:
225
胜利大逃亡
Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 20468 Accepted Submission(s): 8152
题意给出一个长宽高为A,B,C,三维的地图要求在规定时间内从(0,0,0,)走...
分类:
其他好文 时间:
2014-07-27 11:43:59
阅读次数:
235
Struct跟踪算法,自适应的一边跟踪,一边检测的跟踪目标物体算法,类似于TLD算法,运用了SVM分类器,HAAR特征等特征提取算法。。。...
分类:
其他好文 时间:
2014-07-27 11:36:56
阅读次数:
360
队列也是数据结构中比较重要的一种,和栈相反的是,队列是先进先出的,先进队列的可以先出队,跟平时我们排队是一样的。在允许多通道程序运行的计算机系统中,同时几个作业运行。凡是申请输出的作业都从队尾进入队列。
现在用链表实现队列,先定义一个链表结点:
typedef struct QNode
{
int data;
QNode *next;
}QNode,*QueuePtr;给队列定义一个头结点...
分类:
其他好文 时间:
2014-07-27 11:33:22
阅读次数:
212
#define MAXSIZE 100
#define ERROR 1
#define OK 0
typedef struct{
int a;
char s;
}ElemType;
typedef struct{
ElemType e;
int i,j;
...
分类:
其他好文 时间:
2014-07-27 11:13:32
阅读次数:
289
#define MAXSIZE 12500
typedef struct{
int s;
char b;
}ElemType;
typedef struct{
int i,j;
ElemType e;
}Tripe;
typedef struct{
int...
分类:
其他好文 时间:
2014-07-27 11:12:52
阅读次数:
161
typedef enum PointerTag{Link,Thread};
typedef struct{
char ch;
int num;
}ElemType;
typedef struct{
BiThrNode *lchild,*rchild;
PointerTag Ltag,Rtag;
ElemType d...
分类:
其他好文 时间:
2014-07-27 11:12:02
阅读次数:
208
typedef struct{
int wiget;
int lchild,rchild,parent;
int data;
}HNode,*HTree;
void select(HTree &H,int i,int &s1,int &s2){
int tmp,min1,min2=0;
...
分类:
其他好文 时间:
2014-07-27 11:11:52
阅读次数:
208