随笔分类 -  未解决

unsolved problems
摘要:跑的好慢啊,看到别人的几百ms,就知道这道题目不能AC了就算数先记在这View Code #include<cstdio>#include<cstring>#include<queue>#include<algorithm>using namespace std;const int M =1010;int map[M][M];int vis[M][M];int dir[8][2]={-1,0,-1,1,0,1,1,1,1,0,1,-1,0,-1,-1,-1};int r,c;int sx,sy,ex,ey;struct node{ int x,y 阅读全文
posted @ 2012-01-14 06:17 Because Of You 阅读(298) 评论(0) 推荐(0)
摘要:View Code #include<stdio.h>#include<string.h>#include<stdlib.h>struct node{ char num; struct node *left; struct node *right; // node():left(NULL),right(NULL){}};node *build(node *root,char ch){ if(root==NULL) { root=new node; root->left=NULL; root->right=NULL; ... 阅读全文
posted @ 2011-10-12 12:12 Because Of You 阅读(317) 评论(0) 推荐(0)