Twincling OSS 2008 Programming contest

Leela's picture

 All the questions related to the clarity of the challenge shall be discussed under this section.

Note: No code or part of the solution will be discussed until the contest ends.

Leela's picture

from rseshu...

 

Can you please eloborate preparation of search matrix from input lines?

 

Here is the answer:

 Re: Use the skip value and transform the given text as a matrix. The transformed matrix is written in colum major order. Number of rows in the matrix will be equal to the skip value.

 

For example consider text "THESE COURSES ARE FREE" And the skip value to be 5. Then the transformed matrix will be:

TCEF
HOSR
EUAE
SRRE
ESE 

In this the first column of the transformed matrix is made of the first five letters - THESE, and the next column has the next five alpha characters.

I guess this make the solution clear.

 

MindOnFire's picture

Meaning of "skip value"

Hi Leela, I am a little confused with the meaning of "skip value". From your inital explanation of the problem, I understood it to be the no. of columns in every row, but from the example you just gave, does it mean the no. of rows in every column?

Leela's picture

Re: Meaning of "skip value"

skip value is used to generate the random letter matrix. skip value doesn't represent the number of columns, it represents the number of characters (rows) for every column. See the below response for more clarification.

MindOnFire's picture

Thank you Leela, you

Thank you Leela, you clarified my doubt.

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
Thank you for using Captcha to prevent automated spam submissions.
Image CAPTCHA
Enter the characters (without spaces) shown in the image.