You are not logged in. Please login at www.codechef.com to post your questions!

×

Cipher Problem text

http://www.codechef.com/problems/CS06/

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?

asked 19 Jun '12, 11:25

evilnesa's gravatar image

1★evilnesa
465
accept rate: 0%


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 :)

link

answered 19 Jun '12, 23:28

cyberax's gravatar image

2★cyberax ♦
3.4k21955
accept rate: 20%

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×3
×1

question asked: 19 Jun '12, 11:25

question was seen: 441 times

last updated: 19 Jun '12, 23:28

Related questions