Data update
This commit is contained in:
parent
5af6d93694
commit
796d366b97
455 changed files with 7413 additions and 1900 deletions
|
|
@ -1,5 +1,4 @@
|
|||
proc enc in$ . out$ .
|
||||
out$ = ""
|
||||
func$ rlenc in$ .
|
||||
for c$ in strchars in$
|
||||
if c$ = c0$
|
||||
cnt += 1
|
||||
|
|
@ -12,21 +11,22 @@ proc enc in$ . out$ .
|
|||
.
|
||||
.
|
||||
out$ &= cnt & c0$
|
||||
return out$
|
||||
.
|
||||
proc dec in$ . out$ .
|
||||
out$ = ""
|
||||
func$ rldec in$ .
|
||||
for h$ in strsplit in$ " "
|
||||
c$ = substr h$ len h$ 1
|
||||
for i to number h$
|
||||
out$ &= c$
|
||||
.
|
||||
.
|
||||
return out$
|
||||
.
|
||||
s$ = input
|
||||
print s$
|
||||
call enc s$ s$
|
||||
s$ = rlenc s$
|
||||
print s$
|
||||
call dec s$ s$
|
||||
s$ = rldec s$
|
||||
print s$
|
||||
#
|
||||
input_data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue