-->
当前位置:首页 > 题库

PROGRAMMING:Huffman coding

Luz5年前 (2021-05-10)题库410
![ 145.JPG](~/f6461dda-83d9-45e2-b12d-11e782a1e8ad.JPG)
###Input format:
There is only one line, which is a string composed of lower case English letters no more than 255 characters in length.
###Output format:
There are several lines, each line is composed of two parts: a letter and the frequency of the letter, separated by a space, and arranged according to the frequency, when the frequency is the same, it is arranged according to the order of the ASCII code of the letter.
###Input example:
```in
soon
```
###Output example:
```out
o 2
n 1
s 1
```







answer:If there is no answer, please comment