自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

转载 线段树(完全二叉树)

本文转自http://blog.csdn.net/cnyali/article/details/47314123 #include #include #include const int maxn=200000+10; struct node{ int s; int l,r; }; struct node tree[maxn*10]; int a[maxn]; int max(int x,i

2016-02-04 15:20:59 1123 1

原创 卫星照片

#include #include char x[76][76]; int r,c,z[5]={1,0,-1,0,1},ans1,ans2,p0,m,n; int xmin,xmax,ymin,ymax; void search(int a,int b) { for(int t=0;t<=4;t++) if(a+z[t]>-1 && a+z[t]-1 && b+z[t+1]<c && x

2016-02-04 14:00:42 1203

原创 usaco Transform

/* ID:usaco_t2 LANG:C++ TASK:transform */ #include char a[11][11],b[11][11],fz[11][11],fz1[11][11],fz2[11][11],ff[11][11]; int n,i,j,ans=0; void f7() { printf("7\n"); } void f6() { for(i=1;i<=n;i

2016-02-04 13:48:53 347

原创 高精度乘法

#include #include #include char s1[1001],s2[1001]; int a[1001],b[1001],c[2001],f[1001][2001]; int main(){ int alen,blen,clen,i,j,s=0; gets(s1); alen=strlen(s1); gets(s2); blen=strl

2016-02-04 13:46:16 274

原创 高精度加法

#include #include #include char s1[1001],s2[1001]; int a[1001],b[1001],c[1001]; int main(){ int alen,blen,clen,i,s=0; gets(s1); alen=strlen(s1); gets(s2); blen=strlen(s2); for(

2016-02-04 13:45:39 464

原创 高精度减法

#include #include using namespace std; string mtion1,mtion2; int ji[5001]={0},a[5001]={0},b[5001]={0}; void readstring(string mtion,int a[5001],int len,int th) { for(int i=len-1;i>=0

2016-02-04 13:44:44 530

转载 各种排序方法

转自点击打开链接//堆排序 #include #include int a[100010],len=0; void insert(int x){ a[++len]=x; int k=len,t; while(k>1 && a[k]<a[k/2]){ t=a[k];a[k]=a[k/2];a[k/2]=t; k=k/2; } } int main(){ int i,j,k,m,n

2016-02-03 20:47:50 587

转载 BFS模版程序

#include #include #include struct node{ int x,y,s; }; struct node a[10000+10]; int map[101][101],p[101][101],d[4][2]={{1,0},{-1,0},{0,1},{0,-1}}; int main(){ int i,j,k,m,n; int f,l,u,v; scanf("%d%

2016-02-03 20:40:12 560

转载 离散化求RECT1

本文转载至点击打开链接 #include struct node{ int x1,y1,x2,y2,c; }; struct node s[1010]; int px[2010],py[2010],ux[10010],uy[10010],p[10000]; short a[2010][2010],c[2510]; int main(){ int i,j,k,m,n; scanf("%d%

2016-02-03 20:30:59 489

空空如也

空空如也

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

TA关注的人

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