哈夫曼树
捡石子的小孩
这个作者很懒,什么都没留下…
展开
-
Entropy hdu1053 哈夫曼树
自己写的第一个哈夫曼树,纪念一下下#include#include#include#include#includeusing namespace std;struct node{ int w; node *left,*right;};node *root,memory[1000];struct cmp{ bool operator()原创 2012-12-09 00:26:50 · 859 阅读 · 0 评论 -
Safe Or Unsafe hdu2527
哈夫曼树的模板题。 #include#include#includeusing namespace std;struct node{ int w; node *left,*right;};int size;node *root,static_memory[1000000];int ans;struct cmp{原创 2012-12-15 20:38:07 · 830 阅读 · 0 评论