摘要: /************************************************************** Problem: 2434 User: wangyucheng Language: C++ Result: Accepted Time:496... 阅读全文
posted @ 2014-05-09 21:16 wangyucheng 阅读(175) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;int nn;#define in(x) scanf("%d",&x)#define in2(x,y) scanf("%d%d",&x,&y)#define in3(x,y,z) scanf("%... 阅读全文
posted @ 2014-05-09 10:33 wangyucheng 阅读(282) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;#define N 55000#define inf 0x3fffffffint ind[N];int n,a[N];int b1[N],b2[N];int qu[N],he;int l[N],r... 阅读全文
posted @ 2014-05-07 17:00 wangyucheng 阅读(279) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;#define N 110000#define inf 0x6fffffffint root;struct P{ int x,y; bool operatorR)return 0; ... 阅读全文
posted @ 2014-05-06 16:23 wangyucheng 阅读(289) 评论(0) 推荐(0) 编辑
摘要: /************************************************************** Problem: 2809 User: wangyucheng Language: C++ Result: Accepted Time:543... 阅读全文
posted @ 2014-04-23 16:00 wangyucheng 阅读(348) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;#define N 100000typedef long long ll;struct P{ int x,y,num; ll a; bool operator=1;i-=lowb... 阅读全文
posted @ 2014-04-22 22:21 wangyucheng 阅读(629) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#includeusing namespace std;#define N 110000#define M 310000#define K 120#define inf 0x6ffffffftypedef long long ll;st... 阅读全文
posted @ 2014-04-21 17:35 wangyucheng 阅读(580) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#include#include#define maxn 120000using namespace std;int ls[maxn*20],rs[maxn*20],sum[maxn*20];int root[maxn],tot;voi... 阅读全文
posted @ 2014-04-21 11:31 wangyucheng 阅读(188) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#includeusing namespace std;int nn,n;#define N 1050#define inf 0x6fffffffffffLLtypedef long long ll;ll dp[N*2][2500];i... 阅读全文
posted @ 2014-04-17 10:17 wangyucheng 阅读(185) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#includeusing namespace std;#define N 120000typedef long long ll;#define M 410000#define inf 0x6fffffff#define K 180in... 阅读全文
posted @ 2014-04-16 19:47 wangyucheng 阅读(125) 评论(0) 推荐(0) 编辑