ASWECAN (http://www.aswecan.net/index.php)
- 十字街头 (http://www.aswecan.net/forumdisplay.php?forumid=1)
-- 哭求一句英语解释!!! (http://www.aswecan.net/showthread.php?threadid=53528)
哭求一句英语解释!!!
北大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???
__________________
要么不停地奋斗。。
要么不停地堕落。。
生活就是如此
if more than 9 identical characters is dealt with , by first , encoding 9 characters, then the remaining ones.
这句话告诉你,如果一个序列有超过9个不同字符组成,那么首先,编码前九个字符,剩下的作为另一个序列编码。
这位兄台,劝你看中文得了。
__________________
N/A
缓冲区
__________________
“你只要去买两块肥皂来,咯吱咯吱遍身洗一洗,好得很哩!”
identical好像是相同的意思吧?
__________________
自古才子皆淫荡,少女内裤总是湿
嗯对的。我最近一直接触“identity”,作为“身份”、“标识”,应该是“唯一的”...寒一下...
__________________
N/A
有中文看我还看英文干吗~~~
我觉得这个解释是对的
可是依然WA啊……
郁闷中
__________________
要么不停地奋斗。。
要么不停地堕落。。
生活就是如此
莫非现在国内的编程已经实现纯英语教学了?
__________________
自古才子皆淫荡,少女内裤总是湿
boom:楼主犯傻呢
__________________
刁民成群
智商低于180别去玩ACM。
普通人搞个六月天多好...
__________________
N/A
怪不得……
顺便推荐性趣十足,不知道国内能不能上
__________________
自古才子皆淫荡,少女内裤总是湿
不得不说,全面开花的老色狼确实是强的呵呵~
__________________
“你只要去买两块肥皂来,咯吱咯吱遍身洗一洗,好得很哩!”
任何帖子都能扯到成人话题已经越来越成为AS的一大特色了~~
__________________
要么不停地奋斗。。
要么不停地堕落。。
生活就是如此
有本事你别看a片别打手枪别想mm
__________________
刁民成群
我一直三不
__________________
N/A
hehe
这题我终于过了~~
这么简单的题~~
真差呀……
__________________
要么不停地奋斗。。
要么不停地堕落。。
生活就是如此
我一直觉得主格的英语老好的
__________________
~
yy 成人英语……
__________________
FS
似乎人人都要搞一搞ACM才罢休
所有时间均为 北京时间 现在时间 10:02 AM
Copyright 1999-2002, ASWECAN, All rights reserved.
ASWECAN 版权所有 请尊重知识产权 如欲转载请来信([email protected])