Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

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 & 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

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

The Accidental Data Scientist

Authors: Amy Affelt

1st Edition

1573877077, 9781573877077

More Books

Students also viewed these Databases questions