- 合并果子
- 2009-08-04 11:20:08 @
#include
#define max 10010
typedef struct huffnode{
long weight;
long parent;
long lchild;
long rchild;
}huffman;
int main()
{
huffman hufftree[2*max];
long i,k,left,right,n,first_min,second_min;
__int64 sum;
while(scanf("%ld",&n)!=EOF)
{
sum=0;
for(i=1;i
0 条评论
目前还没有评论...