spoj#COMPRESS. Compressed String

Compressed String

Please click here to download a PDF version of the contest problems. The problem is problem C in the PDF.