Cipher Problem text

Sample input:

NPWF!TPVUI!XFTU!UP!41LN
WEST TO
SPZ[LU3’[OL’JYHa'ISHJR'JH['Z[VW'^OLYL'V’HYL
CRAZY BLACK CAT
0

Sample Output:

MOVE SOUTH WEST TO 30KM
LISTEN, THE CRAZY BLACK CAT STOP WHERE YOU ARE

Found Answer but time Limit is too less… always getting time limit exceeded anyone found why it was?

it’s possibly because the input test file does not end with a ‘0’ on a single line.

your program is stuck on the second getline in your while loop, and you get TLE.

regarding the ratio of number of submissions and number of correct answers, you should probably give up this one :slight_smile:

1 Like
//