+ 10

🔫😎🔫 007 [ENCRYPT - DECRYPT] CHALLENGE! 😎🔫😎

Do you like spy movies? You have to encrypt and decrypt a text following these simple rules: 1) each letter of the alphabet will be replaced by some consecutive '@'. For example 'c' (or 'C') is the third letter so it will be replaced with @@@. 2) to separate two letters in a word use one '|' 3) each word starts with '{' and ends with '}' 4) other characters like "!?,.:;" has not to be encrypted. 5) don't use "@|{}" in your sentences: if a string start with '{' you know that you have to decrypt it.

2nd Oct 2017, 10:03 AM
Andrea Simone Costa
Andrea Simone Costa - avatar
13 Antworten
+ 4
@bykah something wrong
2nd Oct 2017, 9:44 PM
Andrea Simone Costa
Andrea Simone Costa - avatar
+ 3
@dennis thanks. Yes, it is right: you can consider "Hi," like an single word formed by three letters: 'H' 'i' ','. Nice work!
2nd Oct 2017, 11:16 AM
Andrea Simone Costa
Andrea Simone Costa - avatar
+ 3
@Amr good work!
2nd Oct 2017, 11:16 AM
Andrea Simone Costa
Andrea Simone Costa - avatar
+ 2
Nice challenge :) Hopefully I understood it currectly ^^ https://code.sololearn.com/cboxmO1BpbSv/?ref=app
2nd Oct 2017, 11:06 AM
Dennis
Dennis - avatar
+ 2
https://code.sololearn.com/cTz3oKkK5rMY/?ref=app
2nd Oct 2017, 11:06 AM
Amr Ibrahim Khudair
Amr Ibrahim Khudair - avatar
+ 1
That was a real pain. My PHP implementation. https://code.sololearn.com/w0HzO525IIlh/?ref=app
3rd Oct 2017, 11:25 AM
Freezemage
Freezemage - avatar
+ 1
https://code.sololearn.com/c21N2oWlUODe/?ref=app
3rd Oct 2017, 2:44 PM
Hiroki Masuda
Hiroki Masuda - avatar
+ 1
@Hiroki Doesn't work correctly
3rd Oct 2017, 2:46 PM
Freezemage
Freezemage - avatar
+ 1
@Freezemage Thanks for your comment. I tried to fix. Now my code can handle "words". Is it a right correction? thanks.
3rd Oct 2017, 10:10 PM
Hiroki Masuda
Hiroki Masuda - avatar
+ 1
@Hiroki now you have to decrypt it.
3rd Oct 2017, 10:15 PM
Freezemage
Freezemage - avatar
10th Oct 2017, 12:00 PM
ⵢⴷⵢⴷ
ⵢⴷⵢⴷ - avatar
0
@Freezemage Thanks. I forgot it. I fixed.
3rd Oct 2017, 10:34 PM
Hiroki Masuda
Hiroki Masuda - avatar