Question: C Programing Language Problem Title : Secret Esmsage Jojo is on a secret mission. His needs to report directly to his upper echelon of the
C Programing 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.
before:
| e | s | m | s | a | g | e |
| 7 | 4 | 1 | 3 | 5 | 6 | 2 |
after:
| m | e | s | s | a | g | e |
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
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 (standard input)
| 11 3< gorpogla 11 10 9 8 7 6 5 4 3 2 1 |
Sample Output (standard output)
| algoprog <3 |
NOTE:
Input And Output Must Be The Same
Don't use library Stdlib.h
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
