文件名称:huff-fuckfuckfuck
介绍说明--下载内容均来自于网络,请自行研究使用
赫夫曼树啊。输入说明:多组数据,第一行为整数m,表示有几组数据,每组数据分为两行输入;第1行为n的值,第2行为n个整数,表示字符的出现频度。
输出说明:对每组数据输出一个整数,表示所构造哈夫曼树的带权路径长度(输出整数后换行)。
-Huffman tree ah. Input Descr iption: multiple sets of data, the first act integer m, which means that there are several sets of data, each line of input data into two the value of n first act, the second act n integers, representing the character frequency of occurrence. Output Descr iption: For each data output an integer that represents the Huffman tree structure with the right path length (integer output after newline).
输出说明:对每组数据输出一个整数,表示所构造哈夫曼树的带权路径长度(输出整数后换行)。
-Huffman tree ah. Input Descr iption: multiple sets of data, the first act integer m, which means that there are several sets of data, each line of input data into two the value of n first act, the second act n integers, representing the character frequency of occurrence. Output Descr iption: For each data output an integer that represents the Huffman tree structure with the right path length (integer output after newline).
(系统自动生成,下载前可以参看下载内容)
下载文件列表
huff fuckfuckfuck.c