- 博客(4)
- 问答 (1)
- 收藏
- 关注
原创 hdu 5444 Elven Postman
题目要求我们建立一棵二叉搜索树,然后每次从根出发,走的路径记录下来数据结构#includeusing namespace std;struct point{ int v; point * lson; point * rson;};point *root=NULL;int k;char path[10010];void searchB
2015-09-16 14:01:25 333
原创 poj 1463 Strategic game 树形dp
第一个自己做出来的树形DP,nice.#include#includeusing namespace std;int a[10010];int n;struct point{ int son; int father; int brother; int put; int not_put;}p[10010];void init(){
2015-09-10 18:37:09 329
原创 hdu 1114 Piggy-Bank 完全背包
完全背包 对每个银币进行完全背包#includeusing namespace std;int w[100010];int v[100010];int dp[100010];const int inf = 0x3f3f3f3f;void completepack(int v,int w,int sum){ int i; for(i=0;i<=sum
2015-09-03 16:17:45 303
原创 centos vim %y+支持
[b]转自 : http://joy2everyone.iteye.com/blog/1552004#comments[/b]vim:从文件拷贝内容至clipboard 博客分类: vim fedoravimclipboardlinuxvim:从文件拷贝内容至Clipboard1.进入visual模式2.选中目标内容3.然后:y+将会显示:'...
2015-09-03 13:33:44 257
空空如也
gvim imap 会注释所有文字怎么办
2015-02-12
TA创建的收藏夹 TA关注的收藏夹
TA关注的人