Page 1 of 1

828 - Deciphering Messages

Posted: Thu Jun 20, 2002 6:09 pm
by tomy
The sample input for problem 828 is broken. It should either be

1

RSAEIO
2
5
RTSSKAEAGE
GRSCAV
RGSSCAV
RUSIQO
RUSSGAACEV JEGIITOOGR

or

1

RSAEIO
2
6
RTSSKAEAGE
GRSCAV
RGSSCAV
RUSIQO
RUSSGAACEV
JEGIITOOGR

Posted: Thu Jun 20, 2002 8:42 pm
by Adrian Kuegel
You are right, sample input is wrong and it should be like in your first case, but the input for the problem is correct, I solved the problem.

actually

Posted: Thu Jun 20, 2002 8:46 pm
by Caesum
it says
the number of messages that are to be deciphered in the third line, and a ciphered text message in each of the remaining lines
which to me means that there might be 5 to decipher but there could be 6 following and they only want 5 of them deciphering ?

Posted: Thu Jun 20, 2002 8:57 pm
by Adrian Kuegel
You are right, the description is not very clear in that point, but the number is exactly the number of following messages (my program would have entered a while(1) loop if there would have been more following messages). And there is no blank line as message.

Posted: Wed May 28, 2003 7:26 am
by yatsen
I got WA many times for this problem.
Can anyone put some sample input and output?

Posted: Thu Sep 18, 2003 12:52 pm
by Dominik Michniewski
I have the same problem as yatsen - I got WA. Maybe someone want to help me ? Some IO would be great ...

Best regards
DM

828 - Deciphering Messages

Posted: Wed Nov 03, 2004 6:45 pm
by mani
Hello!
i tried so much, i make the encryption but didn't been able to find out what are the condiitons on which 'error in encryption' message shows.... can any one help me out, i shall be very thankful to that person.[/cpp]

Re: 828 - Deciphering Messages

Posted: Mon May 12, 2014 11:40 am
by kukker
Here are some sample inputs:

Code: Select all

3

RSAEIO
2
5
RTSSKAEAGE
GRSCAV
RGSSCAV
RUSIQO
RUSSGAACEV JEGIITOOGR

TFVQRNA
4
3
HSK LSYWI
QTEFCSFRVIWI
TEFPMKFEVVXQSQVR

GBIWET
3
2
VDPSOGHB BWIIHWAWWE
GHBPDBLIO
For the inputs it should generate the following outputs:

Code: Select all

RICE
error in encryption
EAT
error in encryption
SEAT HERE

DOG HOUSE
MAYONESE
ALIGATOR

SAMPLE TEXT
EMAIL
An additional hint: after every input cases there should be a blank line, except for the last one, I did not wrote a blank line, and got accepted.