【题解】:【代码】: 1 #include 2 #include 3 #include 4
#define inf 99999999 5 using namespace std; 6 int
dp[105][10005];//i件设备,最小带宽(瓶颈)为j时的最小花费 7 int B[105]...
分类:
其他好文 时间:
2014-06-09 22:35:23
阅读次数:
259
typedef char status;typedef char Telemtype;#define
NULL 0#define OK 1typedef struct bitnode{ Telemtype data; struct bitnode
*lchild,*rchild;}bitnode.....
分类:
其他好文 时间:
2014-06-09 21:39:56
阅读次数:
209
http://poj.org/problem?id=1095先求出n个节点数的二叉树的形态有多少种。卡特兰数f[n]=f[n-1]*(4*n-2)/(n+1);再递归求。
1 #include 2 #include 3 #include 4 #define ll long long 5 #de...
分类:
其他好文 时间:
2014-06-09 15:14:11
阅读次数:
167
在做ACM 1002题时,整理得到。#include#include#define MAX
1000void zero(char *s,int len){ int i; for(i=0;i20) ; for(i=0;iblen?alen:blen;
for(j=0;j=0)&&(j>=0);j--....
分类:
编程语言 时间:
2014-06-09 14:10:01
阅读次数:
328
#ifndef __CCARMATUREDEFINE_H__#define
__CCARMATUREDEFINE_H__//#define _USRDLL 1#include "cocos2d.h"#include
"ExtensionMacros.h"#ifndef ENABLE_PHYSICS_...
分类:
其他好文 时间:
2014-06-09 13:36:47
阅读次数:
162
#include#include#include#includeusing namespace
std;typedef double dd;#define N 200struct P{ dd x,y; P(dd a=0,dd b=0){ x=a,y=b;
...
分类:
其他好文 时间:
2014-06-09 00:00:13
阅读次数:
230
01背包。 1 #include 2 #include 3 #include 4 5
#define MAXN 1005 6 7 typedef struct { 8 int h, l, t; 9 } node_st;10 11 node_st
nodes[35];12 13 in...
分类:
其他好文 时间:
2014-06-08 22:44:08
阅读次数:
339
写了个函数指针,这题目很水,但是佷烦。 1 #include 2 #include 3
#include 4 #include 5 using namespace std; 6 7 #define MAXN 305 8 9 typedef
struct {10 int id, g...
分类:
其他好文 时间:
2014-06-08 20:55:48
阅读次数:
202
#include #include #include #include
"ringbuffer.h"static int b_flag = 0;pthread_mutex_t mutex =
PTHREAD_MUTEX_INITIALIZER;#define TX_LOCK(lock) pthr.....
分类:
系统相关 时间:
2014-06-08 20:45:34
阅读次数:
452
【题解】:【代码】: 1 #include 2 #include 3 #include 4
#include 5 #include 6 #define LL long long 7 using namespace std; 8 LL
dp[15][100005]; 9 LL N,h,uh,...
分类:
其他好文 时间:
2014-06-08 20:08:41
阅读次数:
261