Question: C Programming Language ( Code With C Programming Language) Problem Title : Secret Esmsage Jojo is on a secret mission. His needs to report directly

C Programming Language ( Code With C Programming Language)

Problem Title : Secret Esmsage

Jojo is on a secret mission. His needs to report directly to his upper echelon of the country. As their communication is crucial, the messages need to be secure. But, as Jojo is a busy man doing secret agent stuff, he needs you to make him a program to decrypt the given word S of length N using his decryptor array. The table below illustrates how Jojos decryptor work.

C Programming Language ( Code With C Programming Language) Problem Title :

Format Input

The first line will contain N which denotes the length of the word. The next line will contain S, the word that needs to be decrypted. The last line will be the decryptor, an array of permutation of 1..N.

Format Output

The output of this problem will be the decrypted version of S.

Constraints

  • 1 N 100

Sample Input & Output (Standard Input & Output)

11 3 e m S e = a encrypted word S g decryptor 741 3 5 6 2 m e s S 1 2 3 4 g 67 UT Table 1: Jojo's encryptor

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!