828 - Deciphering Messages

All about problems in Volume 8. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

Post Reply
tomy
New poster
Posts: 2
Joined: Thu Jun 20, 2002 5:53 pm

828 - Deciphering Messages

Post 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
Adrian Kuegel
Guru
Posts: 724
Joined: Wed Dec 19, 2001 2:00 am
Location: Germany

Post 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.
Caesum
Experienced poster
Posts: 225
Joined: Fri May 03, 2002 12:14 am
Location: UK
Contact:

actually

Post 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 ?
Adrian Kuegel
Guru
Posts: 724
Joined: Wed Dec 19, 2001 2:00 am
Location: Germany

Post 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.
yatsen
Learning poster
Posts: 68
Joined: Fri Nov 23, 2001 2:00 am
Location: taiwan

Post by yatsen »

I got WA many times for this problem.
Can anyone put some sample input and output?
Dominik Michniewski
Guru
Posts: 834
Joined: Wed May 29, 2002 4:11 pm
Location: Wroclaw, Poland
Contact:

Post 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
If you really want to get Accepted, try to think about possible, and after that - about impossible ... and you'll get, what you want ....
Born from ashes - restarting counter of problems (800+ solved problems)
mani
New poster
Posts: 1
Joined: Wed Nov 03, 2004 6:23 pm

828 - Deciphering Messages

Post 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]
kukker
New poster
Posts: 5
Joined: Fri Feb 28, 2014 6:39 pm

Re: 828 - Deciphering Messages

Post 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.
Post Reply

Return to “Volume 8 (800-899)”