哭求一句英语解释!!!
北大ACM站1782题
http://acm.pku.edu.cn/JudgeOnline/showproblem?problem_id=1782
Run Length Encoding
Description
Your task is to write a program that performs a simple form of run-length encoding, as described by the rules below.
Any sequence of between 2 to 9 identical characters is encoded by two characters. The first character is the length of the sequence, represented by one of the characters 2 through 9. The second character is the value of the repeated character. if more than 9 identical characters is dealt with by first encoding 9 characters, then the remaining ones.
Any sequence of characters that does not contain consecutive repetitions of any characters is represented by a 1 character followed by the sequence of characters, terminated with another 1. If a 1 appears as part of the sequence, it is escaped with a 1, thus two 1 characters are output.
我就想知道第三段的最后一句话什么意思啊???
A sequence of more than 9 identical characters is dealt with by first encoding 9 characters, then the remaining ones.
什么叫 first encoding 9 characters???
__________________
要么不停地奋斗。。
要么不停地堕落。。
生活就是如此
2004-08-21 05:20 PM 发表 | 举报这个帖子 |
|
| 