All submissions for this problem are available.
The king of Holumba, needs to talk to his allies about a new science research project being undertaken by some of his best scientists. But since its highly classified, he needs some sort of an encryption that he could use to send his messages.Can you help the king send his messages covertly such that they are not understandable ?
The king's message only consists of the letters 'S' ,'L','R' and 'B'.
Using the following rules encrypt his personal message .
Display the original message and the final encryted message
Inputs should be taken strictly according to constraint.
- Your message input shouldn't exceed 18 characters.
- No white spaces in between.
Display the original message consisting of allowed characters and also display the reduced(encrypted) message.
- Letters allowed :
For the input LBRLBS the message is reduced using the rules given above to BR.
|Time Limit:||1 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, CPP14, JAVA, PYTH, PYTH 3.5, CS2, PAS fpc, PAS gpc, RUBY, PHP, GO, NODEJS, HASK, SCALA, D, PERL, FORT, WSPC, ADA, CAML, ICK, BF, ASM, CLPS, PRLG, ICON, SCM qobi, PIKE, ST, NICE, LUA, BASH, NEM, LISP sbcl, LISP clisp, SCM guile, JS, ERL, TCL, PERL6, TEXT, CLOJ, FS|
Fetching successful submissions
If you are still having problems, see a sample solution here.