自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Join Hands

I walk slowly,but I never walk back

  • 博客(6)
  • 资源 (1)
  • 收藏
  • 关注

原创 zoj 3602 Count the Trees 树的同构

/*二叉树的同构 把每棵子树映射为一个整数如节点n的左右孩子为L,R,那么取子树L对应的整数Ln子树R对应的整数Rn,把pair(Ln,Rn)对应为一个整数就是当前子树的映射*/#include#include#include#include#include#include#includeusing namespace std;const int maxn=10000

2012-08-06 00:54:35 3227

原创 HDU 4313 Matrix 类似 克鲁斯卡尔算法

#include #include #include #include #include #include #include #include #include#includeusing namespace std;set Set;struct Edge{ int x,y,val; bool operator<(const Edge & a)const

2012-08-04 21:37:12 2436

原创 HDU 4323 Magic Number 编辑距离(经典DP)

#include#include#include#include#include#includeusing namespace std;char str[1509][1009],s[1009];int dp[1509][1509];int n,m;int main(){ int ca,len,len2,p,op,ans; scanf("%d",&ca);

2012-08-04 21:35:17 2921

原创 HDU 4337 King Arthur's Knights 稠密图构造汉密尔顿回路

#include#include#includeusing namespace std;const int N=200;int str[N],m[N][N],vis[N];int n,k;void rev(int s,int t){ while(s<t) { swap(str[s],str[t]); s++,t--; }}

2012-08-04 21:33:46 3272

原创 HDU 4339 Query 树状数组

#include#include#include#include#includeusing namespace std;const int maxn=1000009;int c[maxn];char s1[maxn],s2[maxn];struct bit{ int lowbit(int x) { return x&-x; } v

2012-08-04 21:31:05 2107

原创 HDU4331 Image Recognition 树状数组+扫描线

#include#include#include#include#include#includeusing namespace std;const int maxn=1009;int c[maxn];int m[maxn][maxn];int L[maxn][maxn],R[maxn][maxn],U[maxn][maxn],D[maxn][maxn];int n;stru

2012-08-04 21:28:52 2228

java俄罗斯方块源代码

java开发的俄罗斯方块小游戏的源代码,实现了游戏的基本功能,暂停,保存游戏进度,继续游戏等等

2011-07-01

空空如也

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

TA关注的人

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