## 828 - Deciphering Messages

Moderator: Board moderators

### 828 - Deciphering Messages

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
tomy
New poster

Posts: 2
Joined: Thu Jun 20, 2002 5:53 pm

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.
Guru

Posts: 724
Joined: Wed Dec 19, 2001 2:00 am
Location: Germany

### actually

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 ?
Caesum
Experienced poster

Posts: 225
Joined: Fri May 03, 2002 12:14 am
Location: UK

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.
Guru

Posts: 724
Joined: Wed Dec 19, 2001 2:00 am
Location: Germany

I got WA many times for this problem.
Can anyone put some sample input and output?
yatsen
Learning poster

Posts: 68
Joined: Fri Nov 23, 2001 2:00 am
Location: taiwan

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)
Dominik Michniewski
Guru

Posts: 828
Joined: Wed May 29, 2002 4:11 pm
Location: Wroclaw, Poland

### 828 - Deciphering Messages

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]
mani
New poster

Posts: 1
Joined: Wed Nov 03, 2004 6:23 pm