上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 37 下一页
摘要: #include#include#include#include#include#includeusing namespace std;int main(){ int in[1024],i,n,t,c; mapm; string s1,s2; while(~s... 阅读全文
posted @ 2015-07-30 08:59 xryz 阅读(76) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;int mp[120][120],in[120];int main(){ int n,m,i,cnt,t,u,v; while(~scanf("%d%d",&n,&m)... 阅读全文
posted @ 2015-07-29 15:41 xryz 阅读(93) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeusing namespace std;int mp[1024][1024],in[1024],out[1024];int main(){ int n,m,i,j,u,v,cnt,t; while(~scanf("%d%d"... 阅读全文
posted @ 2015-07-29 14:38 xryz 阅读(136) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeusing namespace std;struct node{ int l,r; long long sum,c;}t[400000+5];void build(int root,int l,int r){ t[ro... 阅读全文
posted @ 2015-07-29 11:30 xryz 阅读(134) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeusing namespace std;const int N=200000;const int inf=0xffffff0;int maxv,minv;struct node{ int l,r; int minv,maxv... 阅读全文
posted @ 2015-07-28 10:06 xryz 阅读(95) 评论(0) 推荐(0) 编辑
摘要: #include#includeconst int N=100000+5;const int m=100000007;int n,c[N];int lowbit(int x){ return x&(-x);}void add(int x){ while(x0) { ... 阅读全文
posted @ 2015-07-27 20:13 xryz 阅读(101) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeusing namespace std;int main(){ int a[10], ans, i; while (~scanf("%d", &a[1])) { f... 阅读全文
posted @ 2015-07-27 17:23 xryz 阅读(95) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeusing namespace std;const int inf=10) { for(j=200000;j>=s[i];j--) if(dp[j... 阅读全文
posted @ 2015-07-27 15:34 xryz 阅读(90) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeusing namespace std;int n,c[20000+5],d[20000+5],a[20000+5],p[100000+5];int sum(int x){ int ret=0; while(x>0) ... 阅读全文
posted @ 2015-07-27 13:32 xryz 阅读(96) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeusing namespace std;int c[1048][1048],n;int lowbit[1048];void add(int x,int y,int d){ int i,j; for(i=x;i0;i-=low... 阅读全文
posted @ 2015-07-27 10:47 xryz 阅读(106) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 37 下一页