会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
禅境花园
新博客 http://xiang578.github.io/
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
9
10
11
12
13
14
15
16
17
···
37
下一页
2015年7月30日
hdu 2094 产生冠军
摘要: #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
阅读(82)
评论(0)
推荐(0)
2015年7月29日
hdu 3342 Legal or Not 拓扑排序
摘要: #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
阅读(97)
评论(0)
推荐(0)
hdu 1285 确定比赛名次 拓扑排序
摘要: #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
阅读(139)
评论(0)
推荐(0)
poj 3468 A Simple Problem with Integers 线段树
摘要: #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
阅读(139)
评论(0)
推荐(0)
2015年7月28日
poj 3264 Balanced Lineup 线段树
摘要: #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
阅读(99)
评论(0)
推荐(0)
2015年7月27日
hdu 4000 Fruit Ninja(树状数组)
摘要: #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
阅读(104)
评论(0)
推荐(0)
poj 1017 Packets
摘要: #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
阅读(98)
评论(0)
推荐(0)
poj 2184 Cow Exhibition 负值01背包
摘要: #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
阅读(91)
评论(0)
推荐(0)
poj 3928 Ping pong 树状数组
摘要: #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
阅读(104)
评论(0)
推荐(0)
poj 1195 Mobile phones(二维数组)
摘要: #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
阅读(109)
评论(0)
推荐(0)
上一页
1
···
9
10
11
12
13
14
15
16
17
···
37
下一页
公告