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.
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started