Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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.

image text in transcribed

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)

20

i want to eat banana

15 16 17 18 19 20 7 3 4 5 6 10 8 9 14 11 12 13 2 1

Sample Output (Standard Input)

banana want to eat i

NOTE: USE C LANGUAGE, USE stdio.h library (MUST) or string.h if needed. (DONT USE stdlib.h and algorithm library)

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Seven Databases In Seven Weeks A Guide To Modern Databases And The NoSQL Movement

Authors: Luc Perkins, Eric Redmond, Jim Wilson

2nd Edition

1680502530, 978-1680502534

More Books

Students also viewed these Databases questions

Question

How can speakers manage speaking anxiety?

Answered: 1 week ago