CipherProblem code: CS06 |
Problem text... Orders have been sent from the head quarters to submarine to MOVE SOUTH WEST TO 30 KM , but the message is in encoded (Encrypted) form. As M has ASCII code of 77, but they added 1(i.e. key) in it, then M became 77+1 i.e. N. So the entire message is in encrypted form i.e. our hackers has stolen the following line NPWF!TPVUI!XFTU!UP!41LN . The key can be from -30 to 115. The value of key is not known and we got another message from our hackers. The problem is to find the key, and only thing that you know the word CRAZY BLACK CAT which is the part of the string some where in it.
Input
Input description... 1) Encrypted message received: SPZ[LU3 [OL JYHa ISHJR JH['Z[VW ^OLYL V\ HYL 2) Known sub string CRAZY BLACK CAT
Output
Output description... 1) Key=7 2) Message= LISTEN, THE CRAZY BLACK CAT STOP WHERE YOU ARE Note: There will be multiple test cases and the input will end on the line containing a single 0.
Example
Input: NPWF!TPVUI!XFTU!UP!41LN WEST TO SPZ[LU3 [OL JYHa ISHJR JH['Z[VW ^OLYL V\ HYL CRAZY BLACK CAT 0 Output: MOVE SOUTH WEST TO 30 KM LISTEN, THE CRAZY BLACK CAT STOP WHERE YOU ARE
| Author: | rushikesh30 |
| Date Added: | 14-02-2010 |
| Time Limit: | 1 sec |
| Source Limit: | 50000 Bytes |
| Languages: | ADA, ASM, BASH, BF, C, C99 strict, CAML, CLOJ, CLPS, CPP 4.0.0-8, CPP 4.3.2, CS2, D, ERL, F#, FORT, GO, HASK, ICK, ICON, JAR, JAVA, JS, LISP clisp, LISP sbcl, LUA, NEM, NICE, PAS fpc, PAS gpc, PERL, PERL6, PHP, PIKE, PRLG, PYTH, PYTH 3.1.2, RUBY, SCALA, SCM guile, SCM qobi, ST, TEXT, WSPC |
Comments

Fetching successful submissions

if space character will be
if space character will be encripted or not if so then how second sample input have space and same place sample output have also space? (space ASCII = 32 hence in encripted text it should be 32+7 = 39)?
resubmit all your solutions..
resubmit all your solutions..
What is the output
What is the output format??
output description is different from output.
Administrator could u plzz
Administrator could u plzz what is problem with my solution
hey the output description
hey the output description and output is conflicting
I'm just taking the input and
I'm just taking the input and its exceeding the time limit.
Normal 0 false
<!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:0; mso-generic-font-family:roman; mso-font-pitch:variable; mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} span.EmailStyle15 {mso-style-type:personal; mso-style-noshow:yes; mso-style-unhide:no; mso-ansi-font-size:11.0pt; mso-bidi-font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi; color:windowtext;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:Calibri; mso-fareast-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} --> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;}
The output description and output do not match. Can you please tell us what the output is supposed to look like.
Also, the input description's Encrypted message (SPZ[LU3 [……) contains single spaces, whereas in the input at the bottom it contains multiple spaces. Which is the correct one? Yes, it makes a huge difference in the code.
oops! The output
oops!
The output description and sample do not match. Can you please tell us what the output is supposed to look like.
Also, the input description the Encrypted message (SPZ[LU3 [……) contains single spaces, whereas in the input at the bottom contains multiple spaces. Which is the correct one? Yes, it makes a huge difference in the code.
Sumit I tried a order n
Sumit I tried a order n algorithm, it gave TLE.
Finally, i tried the most optimal solution, let me show you the solution even ;)
#include<stdio.h>
int main() {
return 0;
}
~
~
it gives TLE.
Admin!!!!!!!!!!!!!!!!!!, Can
Admin!!!!!!!!!!!!!!!!!!, Can you check your input output.
I think they have missed the
I think they have missed the ` in the second input, as when I tested it on my code which was also giving TLE, the encoded was:
SPZ[LU3`[OL`JYHa`ISHJR`JH[`Z[
when ranklist will be
when ranklist will be uploaded