自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 资源 (1)
  • 收藏
  • 关注

原创 POJ3468(线段树+lazy思想)

#include <iostream>#include <cstdio>using namespace std;__int64 total=0;__int64 A[100000];struct CNode{ int left,right; CNode *leftchild,*rightchild; __int64 sum; __int64 inc;};CNode* build(int l,int r){ CNode* root=new CNode; root->left

2013-07-16 10:59:06 614

原创 POJ1611(并查集)

#include #include #include #include using namespace std;int getpar(int* parent,int a){ if (parent[a]!=a) parent[a]=getpar(parent,parent[a]); return parent[a];}int main(){ int n,m; wh

2013-07-10 21:01:29 557

原创 POJ2524(并查集)

if (getpar(parent,a)!=getpar(parent,b)) parent[parent[b]]=getpar(parent,a);

2013-07-10 19:38:35 661

原创 POJ2352(线段树)

不知道为什么一直TLE,用了线段树的数据结构应该不会超时才对。#include #include #include #include using namespace std;struct Tree{ int left,right; Tree *leftchild,*rightchild; int sum;};Tree* build(int l,int r){ Tr

2013-07-10 09:43:17 539

原创 POJ2352(树状数组)

#include using namespace std;int c[32001]={0};int lowbit(int x){ return x&(-x);}int getsum(int x){ int total=0; while (x>0) { total+=c[x]; x-=lowbit(x); } return total;}void upd

2013-07-09 21:07:59 517

原创 POJ2777(线段树)

color为-1时表示这一段的区间内有不同的颜色,需要继续遍历其左子树和右子树。#include #include #include #include using namespace std;struct Node{ int left; int right; Node *leftchild; Node *rightchild; int color;};N

2013-07-04 15:45:42 561

原创 POJ1151(求矩阵的并面积) 离散化

#include #include #include #include using namespace std;struct rec{ double x1; double y1; double x2; double y2;};int find(double aim,double* arr,int T){ int i; for (i=0;i<=T-1;i++) {

2013-07-03 12:08:06 783

iPhone开发基础教程.pdf

《iPhone开发基础教程》内容完整丰富,具有较强的通用性,编程领域中各层次读者都能通过《iPhone开发基础教程》快速学习iPhone开发,提高相关技能。iPhone 是一种全新的移动平台,苹果公司为它推出了强大的软件开发工具包iPhone SDK。《iPhone开发基础教程》是一部关于iPhone SDK和iPhone开发的基础教程,内容翔实、语言生动。书中结合消费类设备上常见的实例,循序渐进地讲解了iPhone开发的基本流程,并介绍了最先进、时尚、受欢迎的iPhone 特性。

2014-07-18

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除