摘要:
http://acm.hdu.edu.cn/showproblem.php?pid=1053哈夫曼树View Code 1 //1053 2 #include <cstdio> 3 #include <cstring> 4 #include <queue> 5 using namespace std; 6 7 const int L=10000,N=60; 8 char str[L]; 9 int c[30];10 int lch[N],rch[N],w[N],sz;11 typedef pair<int,int> pii;12 priority
阅读全文