LouZhang

导航

2012年8月24日

hdu_4391,线段树

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=4391不想我说了,调了好久不会这。。#include<cstdio>#include<cstring>const int maxn(111111);#define lson l, m, rt<<1#define rson m+1, r, rt<<1|1#define ll rt<<1#define rr rt<<1|1int max[maxn<<2], min[maxn<<2], sum[maxn<<2 阅读全文

posted @ 2012-08-24 15:46 louzhang_swk 阅读(368) 评论(0) 推荐(1) 编辑

hdu_4396,二维最短路

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=4396比赛的时候怎么写怎么错。。还TLE。。还MLE。。还RE。。dijkstra#include<cstdio>#include<cstring>#include<queue>using namespace std;const int maxn(5005);const int maxe(100010);const int inf(100000000);struct Edge{ int v, w, next;}e[maxe*2];int head[maxn], cnt;in 阅读全文

posted @ 2012-08-24 13:42 louzhang_swk 阅读(335) 评论(0) 推荐(0) 编辑